Source:
<code>public IndexDocument getIndexedDocument(AsyncIndexer.File2Index fileData) throws SolrException, RegistryException { IndexDocument indexedDocument = super.getIndexedDocument(fileData); try { Registry registry = GovernanceUtils.getGovernanceSystemRegistry(IndexingManager.getInstance().getRegistry(fileData.tenantId)); GovernanceArtifactConfiguration configuration = GovernanceUtils.findGovernanceArtifactConfigurationByMediaType(fileData.mediaType, registry); if (configuration == null) { return indexedDocument; } GenericArtifactManager manager = new GenericArtifactManager(registry, configuration.getKey()); String xmlAsStr = RegistryUtils.decodeBytes(fileData.data); IndexableGovernanceArtifact artifact = new IndexableGovernanceArtifact((GovernanceArtifactImpl) manager.newGovernanceArtifact(AXIOMUtil.stringToOM(xmlAsStr))); Map<String, List<String>> fields = indexedDocument.getFields(); setAttributesToLowerCase(fields); Map<String, List<String>> attributes = artifact.getAttributes(); if (fileData.mediaType.matches("application/vnd.(.)+\\+xml") && attributes.size() > 0) { setAttributesToLowerCase(attributes); fields.putAll(attributes); } else { fields.put("overview_name", Arrays.asList(RegistryUtils.getResourceName(fileData.path).toLowerCase())); } <START> updateTenantsUnboundedFieldMap(configuration.getContentDefinition().getParent().toString()); <END> indexedDocument.setFields(fields); if (log.isDebugEnabled()) { log.debug("Registry RXT Indexer is running"); } } catch (XMLStreamException e) { log.error("Unable to parse XML", e); } return indexedDocument; }</code><technical_language>@prasa7, I this code move if block</technical_language>

Target:
public IndexDocument getIndexedDocument(AsyncIndexer.File2Index fileData) throws SolrException, RegistryException { IndexDocument indexedDocument = super.getIndexedDocument(fileData); try { Registry registry = GovernanceUtils.getGovernanceSystemRegistry(IndexingManager.getInstance().getRegistry(fileData.tenantId)); GovernanceArtifactConfiguration configuration = GovernanceUtils.findGovernanceArtifactConfigurationByMediaType(fileData.mediaType, registry); if (configuration == null) { return indexedDocument; } GenericArtifactManager manager = new GenericArtifactManager(registry, configuration.getKey()); String xmlAsStr = RegistryUtils.decodeBytes(fileData.data); IndexableGovernanceArtifact artifact = new IndexableGovernanceArtifact((GovernanceArtifactImpl) manager.newGovernanceArtifact(AXIOMUtil.stringToOM(xmlAsStr))); Map<String, List<String>> fields = indexedDocument.getFields(); setAttributesToLowerCase(fields); Map<String, List<String>> attributes = artifact.getAttributes(); if (fileData.mediaType.matches("application/vnd.(.)+\\+xml") && attributes.size() > 0) { setAttributesToLowerCase(attributes); fields.putAll(attributes); updateTenantsUnboundedFieldMap(configuration.getContentDefinition().getParent().toString()); } else { fields.put("overview_name", Arrays.asList(RegistryUtils.getResourceName(fileData.path).toLowerCase())); } indexedDocument.setFields(fields); if (log.isDebugEnabled()) { log.debug("Registry RXT Indexer is running"); } } catch (XMLStreamException e) { log.error("Unable to parse XML", e); } return indexedDocument; }