protected LFPackage toUnwrappedModel(LFPackage lfPackage) {
if (lfPackage instanceof LFPackageImpl) {
return lfPackage;
}
LFPackageImpl lfPackageImpl = new LFPackageImpl();
lfPackageImpl.setNew(lfPackage.isNew());
lfPackageImpl.setPrimaryKey(lfPackage.getPrimaryKey());
lfPackageImpl.setId(lfPackage.getId());
lfPackageImpl.setDefaultOrganizationID(lfPackage.getDefaultOrganizationID());
lfPackageImpl.setTitle(lfPackage.getTitle());
lfPackageImpl.setBase(lfPackage.getBase());
lfPackageImpl.setResourcesBase(lfPackage.getResourcesBase());
lfPackageImpl.setSummary(lfPackage.getSummary());
lfPackageImpl.setAssetRefID(lfPackage.getAssetRefID());
lfPackageImpl.setCourseID(lfPackage.getCourseID());
lfPackageImpl.setLogo(lfPackage.getLogo());
return lfPackageImpl;
}