enable lot static registry

* add getResourceById