code: public List<CmsGroup> getGroupsOfUser(String username, boolean directGroupsOnly, boolean includeOtherOus)
      throws CmsException {
  
          return getGroupsOfUser(username, directGroupsOnly, includeOtherOus, m_context.getRemoteAddress());
      }
docs: Returns all the groups the given user belongs to.<p>
  
  @param username the name of the user
  @param directGroupsOnly if set only the direct assigned groups will be returned, if not also indirect roles
  @param includeOtherOus if to include groups of other organizational units
  
  @return a list of <code>{@link CmsGroup}</code> objects
  
  @throws CmsException if operation was not successful