m_beanAdaptor.setIndexedClasses(new Class[] { m_indexedClasses[i] });
    public void indexAll() {        try {            LOG.info("creating database index...");            m_indexer.open();            // load all classes that need to be indexed            for (int i = 0; i < m_indexedClasses.length; i++) {                getHibernateTemplate().loadAll(m_indexedClasses[i]);            }        } finally {            m_indexer.close();            LOG.info("index created");        }    }