code: public AnalysisEngineDescription buildComponent(int stageId, int phase, AnyObject aeDescription)
            throws Exception {
      Map<String, Object> tuples = Maps.newLinkedHashMap();
      tuples.put(BasePhase.QA_INTERNAL_PHASEID, new Integer(phase));
      tuples.put(EXPERIMENT_UUID_PROPERTY, experimentUuid);
      tuples.put(STAGE_ID_PROPERTY, stageId);
      Class<? extends AnalysisComponent> ac = getFromClassOrInherit(aeDescription,
              AnalysisComponent.class, tuples);
      Object[] params = getParamList(tuples);
      AnalysisEngineDescription description = AnalysisEngineFactory.createPrimitiveDescription(ac,
              typeSystem, typePriorities, params);
      String name = (String) tuples.get("name");
      description.getAnalysisEngineMetaData().setName(name);
      return description;
    }
docs: Made this method public to invoke it from BasePhaseTest