RepositoryConfiguration configuration =
OakRepositoryConfiguration.create(Collections.singletonMap(
RepositoryConfiguration.MICROKERNEL_URL, url));
final Repository repository =
new GlobalContext(configuration).getInstance(Repository.class);
Servlet servlet = new JCRWebdavServerServlet() {
@Override
protected Repository getRepository() {
return repository;
}