code: private void applyComponentIndexForKeyLookups(final AnalysisJobBuilder analysisJobBuilder,
              final AtomicInteger currentComponentIndex) {
          final Collection<ComponentBuilder> componentBuilders = analysisJobBuilder.getComponentBuilders();
          for (final ComponentBuilder componentBuilder : componentBuilders) {
              componentBuilder.setMetadataProperty(METADATA_PROPERTY_COMPONENT_INDEX,
                      Integer.toString(currentComponentIndex.getAndIncrement()));
          }
  
          final List<AnalysisJobBuilder> childJobBuilders = analysisJobBuilder.getConsumedOutputDataStreamsJobBuilders();
          for (final AnalysisJobBuilder childJobBuilder : childJobBuilders) {
              applyComponentIndexForKeyLookups(childJobBuilder, currentComponentIndex);
          }
      }
docs: Appliesc compopnent indices via the component metadata to enable proper functioning of the
  {@link #getComponentByKey(String)} and {@link #getComponentKey(ComponentJob)} methods.
  
  @param analysisJobBuilder
  @param currentComponentIndex