ConfigurationFromContext (DataContext dataContext, List<? extends ConfigurationFromContext> producers) { Integer order = dataContext.getData(ExecutorAction.getOrderKey()); if (order != null && order < producers.size()) { return producers.get(order); } return producers.get(0); }