Source:
<code>public Transfer store( final ArtifactStore store, final String path, final InputStream stream, final TransferOperation op, final EventMetadata eventMetadata ) throws IndyWorkflowException { Logger logger = LoggerFactory.getLogger( getClass() ); logger.trace( "Storing: in: from indexing level", path, store.getKey() ); Transfer transfer = delegate.store( store, path, stream, op, eventMetadata ); if ( transfer != null ) { if ( indexCfg.isEnabled() ) { logger.trace( "Indexing: in: {}", transfer, store.getKey() ); indexManager.indexTransferIn( transfer, store.getKey() ); } <START> nfc.clearMissing( new ConcreteResource( LocationUtils.toLocation( store ), path ) ); <END> if ( store.getType() == StoreType.hosted ) { final String name = String.format( "ContentIndexStoreDeIndex-store(%s)-path(%s)", store.getKey(), path ); final String context = String.format( "Class: %s, method: %s, store: %s, path: %s", this.getClass().getName(), "store", store.getKey(), path ); storeDataManager.asyncGroupAffectedBy( new StoreDataManager.ContextualTask(name, context, () -> { try { Set<Group> groups = storeDataManager.affectedBy( Arrays.asList( store.getKey() ), eventMetadata ); if ( groups != null && !groups.isEmpty() && indexCfg.isEnabled() ) { groups.forEach( g -> { indexManager.deIndexStorePath( g.getKey(), path ); nfc.clearMissing( new ConcreteResource( LocationUtils.toLocation( g ), path ) ); } ); } } catch ( IndyDataException e ) { logger.error( String.format( "Failed to get groups which contains: %s for NFC handling. Reason: %s", store.getKey(), e.getMessage() ), e ); } } ) ); } } return transfer; }</code><technical_language>of NFC store-affected-by maintenance happening in DefaultContentManager? If here, dangerous disable content indexing..</technical_language>

Target:
public Transfer store( final ArtifactStore store, final String path, final InputStream stream, final TransferOperation op, final EventMetadata eventMetadata ) throws IndyWorkflowException { if ( !indexCfg.isEnabled() ) { return delegate.store( store, path, stream, op, eventMetadata ); } Logger logger = LoggerFactory.getLogger( getClass() ); logger.trace( "Storing: in: from indexing level", path, store.getKey() ); Transfer transfer = delegate.store( store, path, stream, op, eventMetadata ); if ( transfer != null ) { if ( indexCfg.isEnabled() ) { logger.trace( "Indexing: in: {}", transfer, store.getKey() ); indexManager.indexTransferIn( transfer, store.getKey() ); } nfc.clearMissing( new ConcreteResource( LocationUtils.toLocation( store ), path ) ); if ( store.getType() == StoreType.hosted ) { final String name = String.format( "ContentIndexStoreDeIndex-store(%s)-path(%s)", store.getKey(), path ); final String context = String.format( "Class: %s, method: %s, store: %s, path: %s", this.getClass().getName(), "store", store.getKey(), path ); storeDataManager.asyncGroupAffectedBy( new StoreDataManager.ContextualTask(name, context, () -> { try { Set<Group> groups = storeDataManager.affectedBy( Arrays.asList( store.getKey() ), eventMetadata ); if ( groups != null && !groups.isEmpty() && indexCfg.isEnabled() ) { groups.forEach( g -> { indexManager.deIndexStorePath( g.getKey(), path ); nfc.clearMissing( new ConcreteResource( LocationUtils.toLocation( g ), path ) ); } ); } } catch ( IndyDataException e ) { logger.error( String.format( "Failed to get groups which contains: %s for NFC handling. Reason: %s", store.getKey(), e.getMessage() ), e ); } } ) ); } } return transfer; }