protected Warrant toUnwrappedModel(Warrant warrant) {
if (warrant instanceof WarrantImpl) {
return warrant;
}
WarrantImpl warrantImpl = new WarrantImpl();
warrantImpl.setNew(warrant.isNew());
warrantImpl.setPrimaryKey(warrant.getPrimaryKey());
warrantImpl.setId(warrant.getId());
warrantImpl.setUserId(warrant.getUserId());
warrantImpl.setSummary(warrant.getSummary());
warrantImpl.setQuantity(warrant.getQuantity());
warrantImpl.setPrice(warrant.getPrice());
warrantImpl.setStatus(warrant.getStatus());
warrantImpl.setCreateDate(warrant.getCreateDate());
warrantImpl.setModifiedDate(warrant.getModifiedDate());
warrantImpl.setExpirationWarningSent(warrant.isExpirationWarningSent());
return warrantImpl;
}