/**
* Help function that checks if administrator is authorized to edit profile with given name.
*/
private boolean authorizedToProfileId(int profileid, boolean editcheck){
HardTokenProfile profile = hardtokensession.getHardTokenProfile(administrator, profileid);
return authorizedToProfile(profile, editcheck);
}