Bug solved: ResourceManager thrwos a ResourceException in

getResourceById() method when a resource is not found (instead of
returning null)