enviorment.setResourceFactory(getResourceFactory());
enviorment.setLocatorFactory(getLocatorFactory());
setDavSessionProvider(new RegistrySessionProvider(
new BasicCredentialsProvider(JCRWebdavServerServlet.INIT_PARAM_MISSING_AUTH_MAPPING),threadLocalData, enviorment));
//setLockManager(lockManager);
// repository = new UserRegistry(threadLocalData);
}