code: protected AutoDeploymentStrategy getAutoDeploymentStrategy(final String mode) {
      AutoDeploymentStrategy result = new DefaultAutoDeploymentStrategy();
      for (final AutoDeploymentStrategy strategy : deploymentStrategies) {
        if (strategy.handlesMode(mode)) {
          result = strategy;
          break;
        }
      }
      return result;
    }
docs: Gets the {@link AutoDeploymentStrategy} for the provided mode. This method may be overridden to implement custom deployment strategies if required, but implementors should take care not to return
  <code>null</code>.
  
  @param mode
  the mode to get the strategy for
  @return the deployment strategy to use for the mode. Never <code>null</code>