JetspeedPrincipalQueryContext ctx = new JetspeedPrincipalQueryContext(userName, startIndex, results, sortDirection, roles, groups, null, attributeMap);
try
{
UserResultList resultList = userManager.getUsersExtended(ctx);
UserDataTableBean result = new UserDataTableBean(resultList);
result.setStartIndex(startIndex);
result.setPageSize(results);
result.setRecordsReturned(results);