/**
  * Returns string array of memberIds of lab administrators.
  *
  * @return Returns string array of memberIds of lab administrators.
  * @throws DataAccessException if an error happens attempting to access the data.
  */
 public String[] getAdminListForLab(String capNumber) throws DataAccessException {
   String[] adminList = null;
   try {
     if (hasLabOptedIn(capNumber)) {
       adminList = getClxAdminService().getLabAdminList(capNumber);
     }
   } catch (RemoteException e) {
     throw new DataAccessException(e.getMessage(), e);
   } catch (AdminServiceException e) {
     throw new DataAccessException(e.getMessage(), e);
   }
   return adminList;
 }
 /**
  * Tells if a given lab has opted-in
  *
  * @return Returns a boolean to indicate if a lab has opted-in.
  * @throws DataAccessException if an error happens attempting to access the data.
  */
 public boolean hasLabOptedIn(String capNumber) throws DataAccessException {
   boolean labOptedIn = false;
   try {
     labOptedIn = getClxAdminService().doesLabExist(capNumber);
   } catch (RemoteException e) {
     throw new DataAccessException(e.getMessage(), e);
   } catch (AdminServiceException e) {
     // CHG00263 - Skip the lab when it does not exist in DA system.
     // jxue  1/28/2008
     String message = e.getMessage();
     if (message.indexOf("This lab does not exist in the DA System") == -1) {
       throw new DataAccessException(message, e);
     } else {
       System.out.println(
           " !!! Lab " + capNumber.trim() + " does not exist in the DA System. Skip the lab.");
     }
   }
   return labOptedIn;
 }