/**
  * Returns the list of commands supported by the current
  * server profile.
  *
  * @param IServerProfile $profile Server profile instance.
  * @return array
  */
 protected function getCommands(IServerProfile $profile)
 {
     $commands = $profile->getSupportedCommands();
     return array_keys($commands);
 }