Source:
private void parseIndexing(final XMLExtendedStreamReader reader, final ConfigurationBuilderHolder holder) throws XMLStreamException { ConfigurationBuilder builder = holder.getCurrentConfigurationBuilder(); for (int i = 0; i < reader.getAttributeCount(); i++) { ParseUtils.requireNoNamespaceAttribute(reader, i); String value = reader.getAttributeValue(i); Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i)); switch (attribute) { case ENABLED: if (reader.getSchema().since(11, 0)) { builder.indexing().enabled(Boolean.parseBoolean(value)); } else { throw ParseUtils.unexpectedAttribute(reader, i); } break; case INDEX: if (reader.getSchema().since(11, 0)) { CONFIG.indexModeDeprecated(); } if ("LOCAL".equals(value)) { value = "PRIMARY_OWNER"; CONFIG.indexLocalIsNotSupported(); } if ("NONE".equals(value)) { builder.indexing().disable(); } Index index = Index.valueOf(value); builder.indexing().index(index); break; case AUTO_CONFIG: builder.indexing().autoConfig(Boolean.parseBoolean(value)); break; default: throw ParseUtils.unexpectedAttribute(reader, i); } } Properties indexingProperties = new Properties(); while (reader.hasNext() && reader.nextTag() != XMLStreamConstants.END_ELEMENT) { Element element = Element.forName(reader.getLocalName()); switch (element) { case KEY_TRANSFORMERS: { parseKeyTransformers(reader, holder, builder); break; } case INDEXED_ENTITIES: { parseIndexedEntities(reader, holder, builder); break; } case PROPERTY: { parseProperty(reader, indexingProperties); break; } default: { throw ParseUtils.unexpectedElement(reader); } } } builder.indexing().withProperties(indexingProperties); }

Target:
private void parseIndexing(final XMLExtendedStreamReader reader, final ConfigurationBuilderHolder holder) throws XMLStreamException { ConfigurationBuilder builder = holder.getCurrentConfigurationBuilder(); for (int i = 0; i < reader.getAttributeCount(); i++) { ParseUtils.requireNoNamespaceAttribute(reader, i); String value = reader.getAttributeValue(i); Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i)); switch (attribute) { case ENABLED: if (reader.getSchema().since(11, 0)) { builder.indexing().enabled(Boolean.parseBoolean(value)); } else { throw ParseUtils.unexpectedAttribute(reader, i); } break; case INDEX: if (reader.getSchema().since(11, 0)) { CONFIG.indexModeDeprecated(); } if ("LOCAL".equals(value)) { value = "PRIMARY_OWNER"; CONFIG.indexLocalIsNotSupported(); } Index index = Index.valueOf(value); builder.indexing().index(index); break; case AUTO_CONFIG: builder.indexing().autoConfig(Boolean.parseBoolean(value)); break; default: throw ParseUtils.unexpectedAttribute(reader, i); } } Properties indexingProperties = new Properties(); while (reader.hasNext() && reader.nextTag() != XMLStreamConstants.END_ELEMENT) { Element element = Element.forName(reader.getLocalName()); switch (element) { case KEY_TRANSFORMERS: { parseKeyTransformers(reader, holder, builder); break; } case INDEXED_ENTITIES: { parseIndexedEntities(reader, holder, builder); break; } case PROPERTY: { parseProperty(reader, indexingProperties); break; } default: { throw ParseUtils.unexpectedElement(reader); } } } builder.indexing().withProperties(indexingProperties); }