HelperContextProcessor processor = new HelperContextProcessor(new DefaultAssemblyFactory(), registry);
URI id = URI.create("/composite1/");
XMLInputFactory xmlFactory = XMLInputFactory.newInstance();
AssemblyFactory assemblyFactory = new DefaultAssemblyFactory();
JavaImplementationFactory javaImplementationFactory = new DefaultJavaImplementationFactory();
JavaImplementation componentType = javaImplementationFactory.createJavaImplementation();
componentType.setJavaClass(FooImpl.class);
for (Field f : FooImpl.class.getDeclaredFields()) {
processor.visitField(f, componentType);
}