private static void CheckConnection(ServiceManagementWrapper managementWrapper)
 {
     try
     {
         managementWrapper.GetTokenFromACS();
     }
     catch (Exception ex)
     {
         throw new Exception("A token could not be retrieved from ACS, there might be connection problems or errors in the configuration." +
             Environment.NewLine + "Please check the namespace, username and password provided.", ex);
     }
 }