public static String getCrowdUsername(HttpServletRequest request) {
ensureAuthenticator();
try {
User user = authenticator.getUser(request);
if (user != null)
return user.getName();
}
catch (ApplicationPermissionException e) {
LOG.warn("Exception during Crowd authentication attempt", e);
}
catch (InvalidAuthenticationException e) {