activitiesDBDir = new File(activitiesDB);
}
String userName = myUserPrincipal != null ? myUserPrincipal.getName() : null;
SVNAuthentication auth = new SVNUserNameAuthentication(userName, false, null, false);
BasicAuthenticationManager authManager = new BasicAuthenticationManager(new SVNAuthentication[] { auth });
SVNRepository resourceRepository = SVNRepositoryFactory.create(SVNURL.parseURIEncoded(getResourceRepositoryRoot()));
resourceRepository.setAuthenticationManager(authManager);
DAVResource resource = new DAVResource(resourceRepository, this, resourceURI, isSVNClient, deltaBase, version,
clientOptions, baseChecksum, resultChecksum, userName, activitiesDBDir, lockTokens, capabilities);
return resource;