[DROOLS-13] add the class of the ObjectTypeNode to the otnId in order to take count of inheritance