Added method to TypedQuery to resolve names to capture