code: public Set<CmsGroup> getRoleGroups(CmsObject cms, CmsRole role, boolean directUsersOnly) throws CmsException {
  
          return m_securityManager.getRoleGroups(cms.getRequestContext(), role, directUsersOnly);
      }
docs: Returns the groups which constitute a given role, i.e. the set of groups such that a member of any of them
  has the given role.<p>
  
  @param cms the CMS context
  @param role the role
  @param directUsersOnly if true, only the role's direct group will be returned
  
  @return the groups constituting the given role
  
  @throws CmsException if something goes wrong