public ModelObject load(CompositeComponent parent, XMLStreamReader reader, DeploymentContext deploymentContext) throws XMLStreamException, LoaderException {
assert propertyQName.equals(reader.getName());
// TODO: We need a way to get TypeHelper from deploymentContext
TypeHelper typeHelper = TypeHelper.INSTANCE;
XMLStreamHelper streamHelper = SDOUtil.createXMLStreamHelper(typeHelper);
DataObject dataObject = streamHelper.loadObject(reader);
// TODO: Is it required that the object always extends from ModelObject?
return new ModelDataObject(dataObject);
}
@Autowire