title: Optaplanner unable to add nearbySelection to subChainSelector
body: <p>My question is essentially the same as <a href="https://stackoverflow.com/questions/54719539/nearby-selection-with-subchainchangemoveselector-or-subchainswapmoveselector">Nearby selection with subChainChangeMoveSelector or subChainSwapMoveSelector</a></p>
  
  <p>I am unable to configure a <code>&lt;nearbySelection&gt;</code> for a <code>subChainSwapMoveSelector</code> or <code>subChainChangeMoveSelector</code>. </p>
  
  <p>The docs outline the use of <code>nearbySelector</code> as for example:</p>
  
  <pre><code>
  &lt;tailChainSwapMoveSelector&gt;
          &lt;entitySelector id="entitySelector3"/&gt;
          &lt;valueSelector&gt;
            &lt;nearbySelection&gt;
              &lt;originEntitySelector mimicSelectorRef="entitySelector3"/&gt;
              &lt;nearbyDistanceMeterClass&gt;...CustomerNearbyDistanceMeter&lt;/nearbyDistanceMeterClass&gt;
              &lt;parabolicDistributionSizeMaximum&gt;40&lt;/parabolicDistributionSizeMaximum&gt;
            &lt;/nearbySelection&gt;
          &lt;/valueSelector&gt;
  &lt;/tailChainSwapMoveSelector&gt;
  </code></pre>
  
  <p>However, setting an <code>entitySelector</code> on a <code>subChainChangeMove</code> or <code>subChainSwapMove</code>is not possible due to them lacking an <a href="https://github.com/kiegroup/optaplanner/blob/master/optaplanner-core/src/main/java/org/optaplanner/core/config/heuristic/selector/value/chained/SubChainSelectorConfig.java#L37" rel="nofollow noreferrer">entitySelectorConfig</a>. They do support a <a href="https://github.com/kiegroup/optaplanner/blob/master/optaplanner-core/src/main/java/org/optaplanner/core/config/heuristic/selector/value/ValueSelectorConfig.java" rel="nofollow noreferrer">valueSelectorConfig</a>, which in turn supports a <a href="https://github.com/kiegroup/optaplanner/blob/master/optaplanner-core/src/main/java/org/optaplanner/core/config/heuristic/selector/common/nearby/NearbySelectionConfig.java" rel="nofollow noreferrer">nearbySelectionConfig</a>. However it is impossible to do something like this:</p>
  
  <pre><code>&lt;subChainSwapMoveSelector&gt;
  
   &lt;entityClass&gt;...&lt;/entityClass&gt;
  
   &lt;selectReversingMoveToo&gt;true&lt;/selectReversingMoveToo&gt;
       &lt;subChainSelector&gt;
         &lt;minimumSubChainSize&gt;2&lt;/minimumSubChainSize&gt;
         &lt;maximumSubChainSize&gt;10&lt;/maximumSubChainSize&gt;
         &lt;valueSelector variableName="previousStandstill" mimicSelectorRef="subChainSwapMove"&gt;
           &lt;nearbySelection&gt;
             &lt;originEntitySelector mimicSelectorRef="subChainSwapMove"/&gt;
             &lt;nearbyDistanceMeterClass&gt;....&lt;/nearbyDistanceMeterClass&gt;
             &lt;parabolicDistributionSizeMaximum&gt;40&lt;/parabolicDistributionSizeMaximum&gt;
           &lt;/nearbySelection&gt;
         &lt;/valueSelector&gt;
        &lt;/subChainSelector&gt;
  &lt;/subChainSwapMoveSelector&gt;
  
  </code></pre>
  
  <p>Because when ValueSeletorConfig tries to call <code>buildMimicReplaying()</code> it fails on </p>
  
  <pre><code>if (id != null
                  || variableName != null
                  || cacheType != null
                  || selectionOrder != null
  || nearbySelectionConfig != null
  </code></pre>
  
  <p>Is this a bug? Is there supposed to be an <code>entitySelectorConfig</code> for both these moves, or how do I get the <code>nearbySelection</code> to work with a <code>valueSelector</code> as the docs only outline the use of <code>entitySelector</code> ?</p>
  
  <p>Thanks!</p>