public void savePathology(PathologyWs pathologyWs) throws ExceptionDAO {
if (pathologyWs == null) {
return;
}
FacadeDB.getInstance().startTransaction();
Pathology pathology = FacadeDB.getInstance().getPathologyBroker().getPathologyByName(pathologyWs.getName());
if ((pathology == null) && (pathologyWs.getInitials() != null)) {
pathology = FacadeDB.getInstance().getPathologyBroker().getPathologyByInitials(pathologyWs.getInitials());
}
if (pathology == null) {
pathology = new Pathology();
pathology.setName(pathologyWs.getName());
pathology.setDescription(pathologyWs.getDescription());
pathology.setInitials(pathologyWs.getInitials());
FacadeDB.getInstance().getPathologyBroker().insert(pathology);
PathologyRemote pathologyRemote = new PathologyRemote(pathology);
pathologyRemote.setRemoteId(pathologyWs.getId());
FacadeDB.getInstance().getPathologySyncBroker().savePathologyRemote(pathologyRemote);
} else {