if (path == null || path.length() == 0) {
path = "/";
}
NamespaceAccessToken nat = m_repository.getNamespaceToken(namespace);
if (nat == null) {
throw new SourceException("No such namespace: " + namespace);
}
SourceParameters queryParameters = null;
if (query == null || query.length() == 0) {
queryParameters = new SourceParameters();
} else {
queryParameters = new SourceParameters(query);
}
String version = queryParameters.getParameter("version",null);
String scope = queryParameters.getParameter("scope",
nat.getNamespaceConfig().getFilesPath());
if (getLogger().isDebugEnabled()) {
getLogger().debug("scheme: " + scheme);
getLogger().debug("principal: " + principal);
getLogger().debug("namespace: " + namespace);