practice of using hibernate in karaf environment