code: @SuppressWarnings("unchecked")
      private String[] getGroupIds(WSCredential cred) {
          Collection<String> ids = null;
          if (cred != null) {
              try {
                  ids = cred.getGroupIds();
              } catch (CredentialExpiredException e) {
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                      Tr.debug(tc, "Caught exception getting the group access ids: " + e);
                  }
              } catch (CredentialDestroyedException e) {
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                      Tr.debug(tc, "Caught exception getting the group access ids: " + e);
                  }
              }
              if (ids != null) {
                  return ids.toArray(new String[ids.size()]);
              }
          }
          return null;
          // TODO if ignoreCase is Collection, then lower case the groupids
      }
docs: Get the group IDs from the specified credential.
  
  @param cred
  the WSCredential to search, must not be null
  @return an array of group access ids of the credential, or null when the
  cred is expired or destroyed