throw new ImplementationRestrictionException(
ImplementationRestrictionException.MORE_THAN_ONE_CTXT_NODE_SEARCH);
}else{
//We have only one context node father
ContextNode contextNode = simpleContextNodeList.get(0).getContextNode();
ContextFatherSSBNNode contextFather = mapContextNode.get(contextNode);
if(contextFather == null){
contextFather = new ContextFatherSSBNNode(pn, contextNode);
List<LiteralEntityInstance> possibleValueList = new ArrayList<LiteralEntityInstance>();
for(String entity: simpleContextNodeList.get(0).getPossibleValues()){
possibleValueList.add(LiteralEntityInstance.getInstance(entity, simpleContextNodeList.get(0).getOvProblematic().getValueType()));
}
for(LiteralEntityInstance lei: possibleValueList){
contextFather.addPossibleValue(lei);
}
contextFather.setOvProblematic(simpleContextNodeList.get(0).getOvProblematic());
mapContextNode.put(contextNode, contextFather);
}
try {
ssbnNode.setContextFatherSSBNNode(contextFather);