public static Event toModel(EventSoap soapModel) {
if (soapModel == null) {
return null;
}
Event model = new EventImpl();
model.setEventId(soapModel.getEventId());
model.setName(soapModel.getName());
model.setDescription(soapModel.getDescription());
model.setDate(soapModel.getDate());
model.setCompanyId(soapModel.getCompanyId());
model.setGroupId(soapModel.getGroupId());
model.setUserId(soapModel.getUserId());
model.setCreateDate(soapModel.getCreateDate());
model.setModifiedDate(soapModel.getModifiedDate());
model.setLocationId(soapModel.getLocationId());
return model;
}