public ObjectTypeNode buildObjectTypeNode( int id, EntryPointNode objectSource, ObjectType objectType, BuildContext context ) {
if ( objectType.getValueType().equals( ValueType.TRAIT_TYPE ) ) {
return new TraitObjectTypeNode( id, objectSource, objectType, context );
} else {
return new ReteObjectTypeNode( id, objectSource, objectType, context );
}
}