create entitymanager on plugin startup