protected Guestbook toUnwrappedModel(Guestbook guestbook) {
if (guestbook instanceof GuestbookImpl) {
return guestbook;
}
GuestbookImpl guestbookImpl = new GuestbookImpl();
guestbookImpl.setNew(guestbook.isNew());
guestbookImpl.setPrimaryKey(guestbook.getPrimaryKey());
guestbookImpl.setUuid(guestbook.getUuid());
guestbookImpl.setGuestbookId(guestbook.getGuestbookId());
guestbookImpl.setGroupId(guestbook.getGroupId());
guestbookImpl.setCompanyId(guestbook.getCompanyId());
guestbookImpl.setUserId(guestbook.getUserId());
guestbookImpl.setUserName(guestbook.getUserName());
guestbookImpl.setCreateDate(guestbook.getCreateDate());
guestbookImpl.setModifiedDate(guestbook.getModifiedDate());
guestbookImpl.setName(guestbook.getName());
return guestbookImpl;
}