LOG.debug( "Found role assignee for {}: {}", username, roleAssignee );
Set<String> roleNames = roleAssignee.roleNames();
Set<String> permissionStrings = roleAssignee.permissionStrings();
LOG.debug( "Found role assignee has the following roles: {}", roleNames );
LOG.debug( "Found role assignee has the following permissions: {}", permissionStrings );
SimpleAuthorizationInfo atzInfo = new SimpleAuthorizationInfo( roleNames );
atzInfo.setStringPermissions( permissionStrings );
return atzInfo;
} finally {
uow.discard();
}