ITagConverter tagConverter = null;
String nsURI = CMUtil.getElementNamespaceURI(element);
//try MD-driven approach
IConverterFactory tagConverterFactory = getTagConverterFactory(nsURI);
if (tagConverterFactory != null) {
tagConverter = tagConverterFactory.createConverter(element, mode);
if (tagConverter != null) {
tagConverter.setDestDocument(document);
} else {
//fallback to contributed (non-MD-driven) approach
tagConverter = ConverterFactoryRegistry.getInstance().createTagConverter(element, mode, document);