Implement resourceUrl to allow both resource and resourcePath with id, allow name to be passed through the constructor of inherited objects.