code: @SuppressWarnings("rawtypes")
      private Map<EntitySpec, SQLGenResultProcessorFactory> allEntitySpecToResultProcessor() {
          /*
           * The order of the entity specs matters for multiple with the same
           * name. Thus, we use a LinkedHashMap.
           */
          Map<EntitySpec, SQLGenResultProcessorFactory> result = new LinkedHashMap<>();
          PrimitiveParameterResultProcessorFactory ppFactory = new PrimitiveParameterResultProcessorFactory(this.backend);
          for (EntitySpec es : this.primitiveParameterEntitySpecs) {
              result.put(es, ppFactory);
          }
          EventResultProcessorFactory eFactory = new EventResultProcessorFactory(this.backend);
          for (EntitySpec es : this.eventEntitySpecs) {
              result.put(es, eFactory);
          }
          ConstantResultProcessorFactory cFactory = new ConstantResultProcessorFactory(this.backend);
          for (EntitySpec es : this.constantEntitySpecs) {
              result.put(es, cFactory);
          }
  
          return result;
      }
docs: /*
  We need to store multiple types of result processor factories in the same
  map