private static EvaluationContext doCreateContext(BeanFactory beanFactory, boolean simple) { ConversionService conversionService = null; EvaluationContext evaluationContext = null; if (beanFactory != null) { evaluationContext = simple ? IntegrationContextUtils.getSimpleEvaluationContext(beanFactory) : IntegrationContextUtils.getEvaluationContext(beanFactory); } if (evaluationContext == null) { if (beanFactory != null) { conversionService = IntegrationUtils.getConversionService(beanFactory); } evaluationContext = createEvaluationContext(conversionService, beanFactory, simple); } return evaluationContext; }
private static EvaluationContext doCreateContext(BeanFactory beanFactory, boolean simple) { ConversionService conversionService = null; EvaluationContext evaluationContext = null; if (beanFactory != null) { evaluationContext = simple ? IntegrationContextUtils.getSimpleEvaluationContext(beanFactory) : IntegrationContextUtils.getEvaluationContext(beanFactory); } if (evaluationContext == null) { if (beanFactory != null) { conversionService = IntegrationUtils.getConversionService(beanFactory); } evaluationContext = createEvaluationContext(conversionService, beanFactory, simple); } return evaluationContext; }