final String applicationName = par.getParameter("application");
final String roleName = par.getParameter("role", null);
final boolean negate = par.getParameterAsBoolean("negate-result", false);
if (this.applicationManager.isLoggedIn(applicationName)) {
final User user = ApplicationUtil.getUser(objectModel);
if (roleName == null || ApplicationUtil.isUserInRole(user, roleName, objectModel)) {
if (!negate) {
map = new HashMap();
map.put("ID", user.getId());
Iterator i = user.getAttributeNames();
while (i.hasNext()) {
final String key = (String) i.next();
map.put(key, user.getAttribute(key));
}
}
}
} else {
if (negate) {