if (!authorizedToCA(admin, data.getCAId())) {
if (!authorizedToCA(admin, data.getCaId())) {
    public UserAdminData findUser(Admin admin, String username) throws FinderException, AuthorizationDeniedException {        debug(">findUser(" + username + ")");        UserDataPK pk = new UserDataPK(username);        UserDataLocal data;        try {            data = home.findByPrimaryKey(pk);        } catch (ObjectNotFoundException oe) {            return null;        }        if (!authorizedToCA(admin, data.getCAId())) {            throw new AuthorizationDeniedException("Administrator not authorized to view user with given CA.");        }        if (getGlobalConfiguration(admin).getEnableEndEntityProfileLimitations()) {            // Check if administrator is authorized to view user.            if (!authorizedToEndEntityProfile(admin, data.getEndEntityProfileId(), AvailableAccessRules.VIEW_RIGHTS))                throw new AuthorizationDeniedException("Administrator not authorized to view user.");        }        UserAdminData ret = new UserAdminData(data.getUsername(), data.getSubjectDN(), data.getCAId(), 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