if (person.getHasOccupation() != null) {
residentNode = mebn.getDomainResidentNode("hasOccupation");
arguments = new ObjectEntityInstance[1];
arguments[0] = mebn.getObjectEntityContainer()
.getEntityInstanceByName(personName);
Occupation stateValue = person.getHasOccupation();
if (stateValue == Occupation.Professional) {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("Professional");
} else if (stateValue == Occupation.SemiSkilled) {
categoricalState = mebn.getCategoricalStatesEntityContainer().getCategoricalState("SemiSkilled");
} else {