}
static public MonadUri getConfigUrl(MonadUri uri, String[] elements,
int position) throws HttpException {
List<String> urlElements = getConfigUrlElements(uri);
MonadUri newUri = null;
if (urlElements.contains(elements[position]
+ (position == elements.length - 1 ? "" : "/"))) {
newUri = uri.resolve(elements[position]);
if (position < elements.length - 1) {
newUri = newUri.append("/");
newUri = getConfigUrl(newUri, elements, position + 1);
}
}
if (newUri == null
&& urlElements.contains("default"