title: hibernate , cant find ServiceRegistry class
body: <p>I am trying to run this
  <a href="http://www.tutorialspoint.com/hibernate/hibernate_examples.htm" rel="nofollow">http://www.tutorialspoint.com/hibernate/hibernate_examples.htm</a>
  it blows up on </p>
  
  <pre><code>factory = new Configuration().configure().buildSessionFactory();
  </code></pre>
  
  <p>so I followed the instructions on how to do it in version 4</p>
  
  <pre><code>   private static SessionFactory configureSessionFactory() throws HibernateException {
         Configuration configuration = new Configuration();
         configuration.configure();
         serviceRegistry = new ServiceRegistryBuilder().applySettings(configuration.getProperties()).buildServiceRegistry();        
         sessionFactory = configuration.buildSessionFactory(serviceRegistry);
         return sessionFactory;
     }
  </code></pre>
  
  <p>but it cant find ServiceRegistry, this fails</p>
  
  <pre><code>import org.hibernate.ServiceRegistry;
  </code></pre>
  
  <p>and indeed it's missing from the jar files which I imported from the /hibernate-search-4.4.2.Final I downloaded, i.e. it's not in hibernate-core-4.2.8.Final.jar </p>