@Override
    public IPersonAttributes getSelf(ExternalContext externalContext) {

        final PortletRequest portletRequest = (PortletRequest) externalContext.getNativeRequest();
        final String username = portletRequest.getRemoteUser();

        return this.personAttributeDao.getPerson(username);
    }
@ Override public IPersonAttributes getSelf ( ExternalContext externalContext ) { final PortletRequest portletRequest = ( PortletRequest ) externalContext . getNativeRequest ( ) ; final String username = portletRequest . getRemoteUser ( ) ; return this . personAttributeDao . getPerson ( username ) ; }
/* (non-Javadoc)
@see org.apereo.portal.portlets.lookup.IPersonLookupHelper#getSelf(org.springframework.webflow.context.ExternalContext)