protected LFFileStorage toUnwrappedModel(LFFileStorage lfFileStorage) {
if (lfFileStorage instanceof LFFileStorageImpl) {
return lfFileStorage;
}
LFFileStorageImpl lfFileStorageImpl = new LFFileStorageImpl();
lfFileStorageImpl.setNew(lfFileStorage.isNew());
lfFileStorageImpl.setPrimaryKey(lfFileStorage.getPrimaryKey());
lfFileStorageImpl.setId(lfFileStorage.getId());
lfFileStorageImpl.setFilename(lfFileStorage.getFilename());
lfFileStorageImpl.setContent(lfFileStorage.getContent());
return lfFileStorageImpl;
}