class RepositoryFactoryBean extends org.springframework.extensions.jcr.RepositoryFactoryBean {

    protected Repository createRepository() throws Exception {
        // return JackRabbit repository.
        return RepositoryImpl.create(repositoryConfig);
    }

}