//2) FIND THE PREVIOUS ELEMENT.
ObjectEntity objectEntityOrdereable = residentNode.getMFrag().
getMultiEntityBayesianNetwork().getObjectEntityContainer().
getObjectEntityByType(ovOrdereable.getValueType());
LiteralEntityInstance ovOrdereableActualValue = node.getEntityForOv(ovOrdereable);
OVInstance ovInstanceOrdereable = OVInstance.getInstance(ovOrdereable, ovOrdereableActualValue);
if(ovInstanceOrdereable == null){
throw new SSBNNodeGeneralException();
}
String nameEntity = ovInstanceOrdereable.getEntity().getInstanceName();
ObjectEntityInstanceOrdereable objectEntityInstanceOrdereable =
(ObjectEntityInstanceOrdereable)objectEntityOrdereable.getInstanceByName(nameEntity);
if(objectEntityInstanceOrdereable == null){
throw new SSBNNodeGeneralException();
}
ObjectEntityInstanceOrdereable prev = objectEntityInstanceOrdereable.getPrev();
if(prev != null){
level5 = new IdentationLevel(level4);
if (ssbn.getLogManager() != null) {
ssbn.getLogManager().printText(level5, false, "Previous node = " + prev + " (" + objectEntityInstanceOrdereable + ")");
}
LiteralEntityInstance ovOrdereablePreviusValue =
LiteralEntityInstance.getInstance(prev.getName(), ovOrdereable.getValueType());
//3) Mount the father
/*