Fixed classloading issue when using custom idm entities from module