protected LFResource toUnwrappedModel(LFResource lfResource) {
if (lfResource instanceof LFResourceImpl) {
return lfResource;
}
LFResourceImpl lfResourceImpl = new LFResourceImpl();
lfResourceImpl.setNew(lfResource.isNew());
lfResourceImpl.setPrimaryKey(lfResource.getPrimaryKey());
lfResourceImpl.setId(lfResource.getId());
lfResourceImpl.setPackageID(lfResource.getPackageID());
lfResourceImpl.setScormType(lfResource.getScormType());
lfResourceImpl.setResourceID(lfResource.getResourceID());
lfResourceImpl.setHref(lfResource.getHref());
lfResourceImpl.setBase(lfResource.getBase());
return lfResourceImpl;
}