error("Error cloing end entity profile: ", e);
    public boolean cloneEndEntityProfile(Admin admin, String originalprofilename,        String newprofilename) {        EndEntityProfile profile = null;        boolean returnval = false;        try {            EndEntityProfileDataLocal pdl = profiledatahome.findByProfileName(originalprofilename);            profile = (EndEntityProfile) pdl.getProfile().clone();            returnval = addEndEntityProfile(admin, newprofilename, profile);            if (returnval) {                logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(), null, null,                    LogEntry.EVENT_INFO_ENDENTITYPROFILE,                    "New end entity profile " + newprofilename + " used profile " +                    originalprofilename + " as template.");            } else {                logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(), null, null,                    LogEntry.EVENT_ERROR_ENDENTITYPROFILE,                    "Error adding end entity profile " + newprofilename + " using profile " +                    originalprofilename + " as template.");            }        } catch (Exception e) {        }        return returnval;    }