public ElementRecord getElementRecordById(String rid)
throws MissingRecordException {
try {
return (ElementRecord) getRecordById(rid);
} catch (ClassCastException e) {
throw new MissingRecordException(rid,
"rid does not correspond to ElementRecord");
}
}