Called when done persisting.
Loads the json into the shared styles.
For a given resourceId this will return the sharedResource.
This can be called multiple times.
Only shared styles that have had the toResourceId called will be shown in the persisted json.
For a sharedResource this will return a number that can be used to reference the resource in the persisted json.
Called when done persisting.