/**
  * @ControllerManaged
  *
  * @param string $oldUserName        	
  * @param string $newUserName        	
  */
 protected function updateHostUserName($oldUserName, $newUserName)
 {
     $this->configService->setHostUserName(trim($newUserName));
     if (!$this->backupService->isHostUserNameValid()) {
         throw new \OCA\EasyBackup\EasyBackupException('Hostname is not valid');
     }
     $this->backupService->updateBackupCommand();
     $preconditionsHtml = $this->renderPreconditionsHtml();
     return array('newUserName' => trim($newUserName), 'preconditionsHtml' => $preconditionsHtml);
 }