Check class loader for entity if not in catalog

`0.5` version of #727