}
public static void getDefinitions(final BindingHolder holder,
final Map<org.jibx.runtime.QName, MappingElement> types,
final Map<org.jibx.runtime.QName, MappingElement> elems) {
TreeContext ctx = new TreeContext(new DummyClassLocator());
ModelVisitor visitor = new ModelVisitor() {
public boolean visit(MappingElement mapping) {
org.jibx.runtime.QName qname = mapping.getTypeQName();
if (qname != null) {
types.put(qname, mapping);
}