protected LFCertificate toUnwrappedModel(LFCertificate lfCertificate) {
if (lfCertificate instanceof LFCertificateImpl) {
return lfCertificate;
}
LFCertificateImpl lfCertificateImpl = new LFCertificateImpl();
lfCertificateImpl.setNew(lfCertificate.isNew());
lfCertificateImpl.setPrimaryKey(lfCertificate.getPrimaryKey());
lfCertificateImpl.setId(lfCertificate.getId());
lfCertificateImpl.setTitle(lfCertificate.getTitle());
lfCertificateImpl.setDescription(lfCertificate.getDescription());
lfCertificateImpl.setLogo(lfCertificate.getLogo());
lfCertificateImpl.setIsPermanent(lfCertificate.getIsPermanent());
lfCertificateImpl.setPublishBadge(lfCertificate.getPublishBadge());
lfCertificateImpl.setShortDescription(lfCertificate.getShortDescription());
lfCertificateImpl.setCompanyID(lfCertificate.getCompanyID());
lfCertificateImpl.setState(lfCertificate.getState());
lfCertificateImpl.setEmails(lfCertificate.getEmails());
lfCertificateImpl.setValidPeriodType(lfCertificate.getValidPeriodType());
lfCertificateImpl.setValidPeriod(lfCertificate.getValidPeriod());
lfCertificateImpl.setCreatedDate(lfCertificate.getCreatedDate());
lfCertificateImpl.setIsPublished(lfCertificate.getIsPublished());
lfCertificateImpl.setScope(lfCertificate.getScope());
return lfCertificateImpl;
}