public IUser getUser(AuthenticationIdentity id) {
// Lookup FileNet user and user's groups
IUserContext uc = conn.getUserContext();
String username = FileUtil.getUserName(id);
try {
return uc.lookupUser(username);
} catch (RepositoryException e) {
logger.log(Level.WARNING, "Failed to lookup user [" + username
+ "] in FileNet", e);
return null;
}