code: public String[] getGroupArrayNames() {
          synchronized (groupNames) {
              return Collections.unmodifiableList(groupNames).toArray(new String[groupNames.size()]);
          }
      }
docs: Returns a String array for the group names that the roster entry
  belongs to.
  
  @return a String[] for the group names.