throw new ClipsException("Не удалось назначить услугу", ex);
}
}
public boolean isVidalBad(DirectoryVidalItem vidal) throws ClipsException{
DirectoryMatter directoryMatter = DirectoryLocator.getDirectory(DirectoryMatter.class, false);
List<ContraindicationLocal> contraList = getContraindicationList();
Set<Integer> matterIDSet = new HashSet<Integer>();
for (int i = 0; i < contraList.size(); i++) {
matterIDSet.add(contraList.get(i).getMatter().getID());
}
HashMap<DirectoryVidalItem, SelectorEditableExceptional<DirectoryMatterItem>> mapFiltered;
mapFiltered = new HashMap<DirectoryVidalItem, SelectorEditableExceptional<DirectoryMatterItem>>();
SelectorEditableExceptional<DirectoryMatterItem> s;
if (mapFiltered.get(vidal) == null) {
s = directoryMatter.getFilteredItems(vidal);
mapFiltered.put(vidal,s);
} else {
s = mapFiltered.get(vidal);
}
boolean contraFounded = false;