ExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry();
ModelFactoryExtensionPoint modelFactories = extensionPoints.getExtensionPoint(ModelFactoryExtensionPoint.class);
inputFactory = XMLInputFactory.newInstance();
StAXAttributeProcessor attributeProcessor = new AnyAttributeProcessor(modelFactories,null);
StAXAttributeProcessorExtensionPoint staxAttributeProcessorsExtensionPoint = new DefaultStAXAttributeProcessorExtensionPoint(extensionPoints);
staxAttributeProcessorsExtensionPoint.addArtifactProcessor(attributeProcessor);
extensionPoints.addExtensionPoint(staxAttributeProcessorsExtensionPoint);