These docs are for an old release. Info on upgrading to v6

getResourceById

A method that retrieves a specific Resource Object in memory.

.getResourceById( resourceId )

If no resource matches the given resourceId, will return null.