void (DomExtensionsRegistrar registrar, String attribName, final @NotNull Type attributeType, final @Nullable Class converterType) { final DomExtension extension = registrar.registerGenericAttributeValueChildExtension(new XmlName(attribName), attributeType); if (converterType != null) { try { extension.setConverter((Converter<?>)converterType.newInstance()); } catch (InstantiationException | IllegalAccessException e) { LOG.info(e); } } }