final IValidationReporter reporter = new ReporterAdapter();
final ELExpressionValidator validator =
new ELExpressionValidator(
elContext, elText, symbolResolverFactory, reporter);
validator.validateXMLNode();
final IExpressionSemanticValidator semValidator = validator
.getSemanticValidator();
if (semValidator != null
&& semValidator.getExpressionType() instanceof ValueType)
{
return (ValueType) semValidator.getExpressionType();
}
return null;
}