code: public List<CmsGroup> getGroupsOfUser(CmsDbContext dbc, String username, boolean readRoles) throws CmsException {
  
          return getGroupsOfUser(dbc, username, "", true, readRoles, false, dbc.getRequestContext().getRemoteAddress());
      }
docs: Returns the groups of an user filtered by the specified IP address.<p>
  
  @param dbc the current database context
  @param username the name of the user
  @param readRoles if to read roles or groups
  
  @return the groups of the given user, as a list of {@link CmsGroup} objects
  
  @throws CmsException if something goes wrong