boolean found = false;
CBuffer tmp = mappingData.tmpPrefix;
tmp.wrap(uri, 0, uri.length());
while (pos >= 0) {
if (tmp.startsWith(contexts[pos].name)) {
length = contexts[pos].name.length();
if (tmp.length() == length) {
found = true;
break;
} else if (tmp.startsWithIgnoreCase("/", length)) {