IBindingFactory delegateFactory =
BindingDirectory.getFactory("metadata", JIBX_FACTORY_CLASS);
UnmarshallingContext delegateContext =
(UnmarshallingContext) delegateFactory.createUnmarshallingContext();
delegateContext.setFromContext(ctx);
// note that this is not checking that the namespace matches
final int pos = findIndex(
delegateFactory.getElementNames(),
delegateFactory.getElementNamespaces(),