checkName(nameInstance);
if (multiEntityBayesianNetwork.getObjectEntityContainer()
.getEntityInstanceByName(nameInstance) != null) {
throw new EntityInstanceAlreadyExistsException();
} else {
try {
ObjectEntityInstance instance = entity
.addInstance(nameInstance);
multiEntityBayesianNetwork.getObjectEntityContainer()