if(!profileauthproxy.getEndEntityProfileAuthorization(admin, data.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.VIEW_RIGHTS))
if(!profileauthproxy.getEndEntityProfileAuthorization(admin, data.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.VIEW_RIGHTS, LogEntry.MODULE_RA))
    public UserAdminData findUser(Admin admin, String username) throws FinderException, AuthorizationDeniedException, RemoteException {        debug(">findUser("+username+")");        UserDataPK pk = new UserDataPK(username);        UserDataLocal data;        try {            data = home.findByPrimaryKey(pk);        } catch (ObjectNotFoundException oe) {            return null;        }        if(globalconfiguration.getEnableEndEntityProfileLimitations()){          // Check if administrator is authorized to view user.          if(!profileauthproxy.getEndEntityProfileAuthorization(admin, data.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.VIEW_RIGHTS))            throw new AuthorizationDeniedException("Administrator not authorized to view user.");        }        UserAdminData ret = new UserAdminData(data.getUsername(), data.getSubjectDN(), data.getSubjectAltName() ,data.getSubjectEmail(), data.getStatus()                                        , data.getType(), data.getEndEntityProfileId(), data.getCertificateProfileId()                                        , new java.util.Date(data.getTimeCreated()), new java.util.Date(data.getTimeModified())                                        , data.getTokenType(), data.getHardTokenIssuerId());        ret.setPassword(data.getClearPassword());        debug("<findUser("+username+")");        return ret;    } // findUser