Retrieve a resource given a ResourceDescriptor

The following example shows the definition of the ResourceManager.getResource method.

ResourceManager.getResource(ResourceContentDescriptor resourceDescriptor);

The ResourceManager.getResource method retrieves a Resource using the provided ResourceDescriptor. Since a ResourceContentDescriptor is passed in as a parameter, a generalized resource or a NetworkResource will be returned (not a Realm). The return type is Resource, so the resource will need to be cast to its specific type prior to making type-specific calls against it.