public IValue getTypedResource(ISourceLocation uriLoc, IValue type, IEvaluatorContext ctx) {
// TODO: We may not need this here, since we already create the same type internally
// when we create the resource. Commenting out for now...
Type resourceType = ((ReifiedType) type.getType()).getTypeParameters().getFieldType(0);
IResource handler = Resource.getResourceHandler(uriLoc);
ResourceResult rr = handler.createResource(ctx, uriLoc, resourceType);
return rr.getValue();
}