changeAdminPreference(currentadminpreference);
adminspreferences.changeAdminPreferenceNoLog(certificateserialnumber,currentadminpreference);
    public void setLastEndEntityProfile(int lastprofile) throws Exception{        currentadminpreference.setLastProfile(lastprofile);        if(existsAdminPreference()){          changeAdminPreference(currentadminpreference);        }else{          addAdminPreference(currentadminpreference);        }    }