private static void registerAttribute(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);
      }
    }
  }
private static void registerAttribute(DomExtensionsRegistrar registrar,
                                        String attribName,
                                        final @NotNull Type attributeType,
                                        final @Nullable Class converterType)