public static Profile getCurrentProfile ( ) { RequestContext context = RequestContext . getCurrent ( ) ; if ( context != null ) { return getProfile ( context . getRequest ( ) ) ; } else { return null ; } }
Returns the profile from authentication attribute from the current request .