throws ContentRepositoryException, JAXBException
{
ContentCollection dir = getContentDir();
ContentResource resource = (ContentResource) dir.getChild(id);
if (resource == null) {
throw new ContentRepositoryException("No such file: " + id);
}
Unmarshaller u = getContext().createUnmarshaller();
return (ErrorReport) u.unmarshal(resource.getInputStream());
}