code: public Termination buildTermination(HeuristicConfigPolicy configPolicy, Termination chainedTermination) {
          Termination termination = buildTermination(configPolicy);
          if (termination == null) {
              return chainedTermination;
          }
          return new OrCompositeTermination(chainedTermination, termination);
      }
docs: ************************************************************************