*
* @param expression The {@link Expression} for which its {@link Resolver} will be retrieved
* @return {@link Resolver} for the given {@link Expression}
*/
public Resolver getResolver(Expression expression) {
ResolverBuilder visitor = getResolverBuilder();
try {
expression.accept(visitor);
return visitor.getResolver();
}
finally {
visitor.dispose();
}
}