public static void CloseServiceClient(PrimeSuiteServiceClient oClient)
 {
     if ((oClient != null))
     {
         if (oClient.State == System.ServiceModel.CommunicationState.Opened)
         {
             oClient.Close();
         }
     }
 }