BindingDirectory.getFactory(bindname, "org.jibx.binding.model");
// unmarshal document to construct objects
IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
uctx.setDocument(is, fname, null);
uctx.pushObject(new UnmarshalWrapper(vctx, contain));
BindingElement binding = new BindingElement();
binding.setPrecompiled(precomp);
((IUnmarshallable)binding).unmarshal(uctx);
uctx.popObject();
return binding;