Rename getResourceMetadata to getResource, remove obsolete getResource