if( objectHasField( inputNode, associationName ) )
{
Object value = getObjectFieldValue(
inputNode,
associationName,
buildDeserializeInputNodeFunction( new ValueType( EntityReference.class ) ) );
stateMap.put( associationName, value );
}
}
// ManyAssociations
for( AssociationDescriptor manyAssociation : valueCompositeType.manyAssociations() )
{
String manyAssociationName = manyAssociation.qualifiedName().name();
if( objectHasField( inputNode, manyAssociationName ) )
{
Object value = getObjectFieldValue(
inputNode,
manyAssociationName,
buildDeserializeInputNodeFunction( new CollectionType( Collection.class,
new ValueType( EntityReference.class ) ) ) );
stateMap.put( manyAssociationName, value );
}
}
// NamedAssociations