entryConceptTOs.add(entryXML );
}
HashMap<PathTO,Integer> prizeTable = ontoSpreadState.getConceptsToPrize().getPrizeTable();
ontoSpreadXMLState.setPrizeTable(factory.createEntryPrizeTableListType());
for (PathTO pathTO : prizeTable.keySet()) {
EntryPrizeTableTOType entry = new EntryPrizeTableTOType();
PathTOType pathToAdd = new PathTOType();
pathToAdd.setUri(pathTO.getConceptUri());
pathToAdd.setRelations(factory.createListUrisType());
if(pathTO.getRelationsUri() != null){
pathToAdd.getRelations().getRelations().addAll(Arrays.asList((pathTO.getRelationsUri())));
}
entry.setHits(prizeTable.get(pathTO));
entry.setPathTO(pathToAdd);
ontoSpreadXMLState.getPrizeTable().getEntryPrizeTableTOs().add(entry);
}
ConceptTO conceptToSpread = ontoSpreadState.getConceptToSpread();
ontoSpreadXMLState.setConceptTOSpread(conceptToSpread.getUri());