public CertificateProfile getCertificateProfile(String profilename) throws AuthorizationDeniedException{ if(!authorizedToProfileName(profilename, false))
public CertificateProfile getCertificateProfile(int id) throws AuthorizationDeniedException{ if(!authorizedToProfileId(id, false))
    public CertificateProfile getCertificateProfile(String profilename) throws AuthorizationDeniedException{     if(!authorizedToProfileName(profilename, false))        throw new AuthorizationDeniedException("Not authorized to certificate profile");                           return certificatestoresession.getCertificateProfile(administrator, profilename);    }