public IItJakubService GetMainServiceClient() { if (!IsUserLoggedIn()) { return(m_communication.GetUnsecuredClient()); } var username = GetUserName(); var password = GetCommunicationToken(); return(m_communication.GetAuthenticatedClient(username, password)); }