}
}
return result;
}
case APPLICATION: {
TypeApplication app = (TypeApplication) returnType;
List<TypeExpression> types = app.getTypes();
IRubyObject ret = resolveIdentity(template, app.getIdentity());
if (ret != null && ret instanceof RubyClass) {
RubyClass klass = (RubyClass) ret;
ret = graph.newInstanceOf(klass);
ClassType klassType = RuntimeHelper.getClassAnnotation(klass);
TypeVarMap typeVarMap = RuntimeHelper.getTypeVarMap(ret);