Implemented resolveAgainstContext on class reference.