currentUser.setName(getRequired(attributes, "name"));
currentUser.setPassword(getRequired(attributes, "password"));
}
if (currentPath.equals("security/users/user/privilege"))
{
currentPrivilege = new Privilege();
currentPrivilege.setResourcePattern(getRequired(attributes, "resource"));
currentPrivilege.setActions(getRequired(attributes, "actions"));
}
}