public Items() {
// don't load anything
}
public Object parse(StringKeeper context, String id, InputStream in) throws IOException {
XMLReader reader = new XMLReader();
reader.setIgnoreRoot(true);
String xml = ReaderUtils.readInputStream(in);
@SuppressWarnings("unchecked")
Map<String, String> body = (Map<String, String>) reader.read(xml);
return new Item(body.get("id"), body.get("name"));
}