}
ontoSpreadXMLState.setUriDepthPair(factory.createUriDepthListType());
List<UriDepthPairType> uriDepthPairs = ontoSpreadXMLState.getUriDepthPair().getUriDepthPairs();
for (UriDepthPair uriPair : ontoSpreadState.getSortedList()) {
UriDepthPairType uriXMLPair = new UriDepthPairType();
uriXMLPair.setConceptUri(uriPair.getUri());
uriXMLPair.setDepth(uriPair.getDepth());
uriDepthPairs.add(uriXMLPair );
}
ontoSpreadXMLState.setConcepts(factory.createEntryConceptsListType());
List<EntryConceptsType> entryConceptTOs = ontoSpreadXMLState.getConcepts().getEntryConceptTOs();
for (String key : ontoSpreadState.getConcepts().keySet()) {