protected function getSyncHandle()
    {
        $credentials = $this->credentials->getServerCredentials();
        $handle = array_get($credentials, 'host');
        $explodedHandle = explode(':', $handle);

        // Extract port
        if (count($explodedHandle) === 2) {
            $this->options['port'] = $explodedHandle[1];
            $handle = $explodedHandle[0];
        }

        // Add username
        if ($user = array_get($credentials, 'username')) {
            $handle = $user.'@'.$handle;
        }

        return $handle;
    }