Added Resource.resolve() method.