code:     public String[] getGroups() {
  
          UserDatabase database = (UserDatabase) this.resource;
          ArrayList<String> results = new ArrayList<String>();
          Iterator<Group> groups = database.getGroups();
          while (groups.hasNext()) {
              Group group = groups.next();
              results.add(findGroup(group.getGroupname()));
          }
          return results.toArray(new String[results.size()]);
  
      }
  
  
      /**
       * Return the MBean Names of all roles defined in this database.
       */
  