entryIdentifier = entryIdentifier.substring(pos + 1);
} else {
throw new WikiDataException(WikiDataException.UnknownResource, url.toString());
}
}
DatabaseEntry entry = database.content().get(entryIdentifier);
if (entry != null) {
if (url.size() > 1) {
return this.decode(database, (DatabaseGroupNode)database.get(entry.identifier()), versionParameter, url, 1);
} else {
return entry.identifier();
}
} else {
throw new WikiDataException(WikiDataException.UnknownResource, url.toString());
}
} else {