if(authorizedToProfileName(originalname, true)){
if(authorizedToProfileName(originalname, false)){
    public void cloneCertificateProfile(String originalname, String newname) throws CertificateProfileExistsException, AuthorizationDeniedException{               if(authorizedToProfileName(originalname, true)){        certificatestoresession.cloneCertificateProfile(administrator, originalname,newname);        this.info.certificateProfilesEdited();      }else         throw new AuthorizationDeniedException("Not authorized to clone certificate profile");              }        