throw new BadResumptionTokenException("Not a known resumptionToken.");
}
private String getPID(String id) throws IDDoesNotExistException {
if (!id.startsWith("oai:" + m_repositoryDomainName + ":")) {
throw new IDDoesNotExistException("For this repository, all identifiers in OAI requests should begin with oai:"
+ m_repositoryDomainName + ":");
}
if (id.indexOf("'") != -1) {
throw new IDDoesNotExistException("For this repository, no identifiers contain the apostrophe character.");
}
return id.substring(4 + m_repositoryDomainName.length() + 1);
}