throw new Kite9ProcessingException("Could not process server response: " + e);
} finally {
try {
OutputStream fos = getRepository().store(i.getSubjectId(), i.getName(), "xml");
XMLHelper xh = new XMLHelper();
String xml = xh.toXML(i);
OutputStreamWriter w = new OutputStreamWriter(fos);
w.write(xml);
w.close();
} catch (IOException e) {
throw new Kite9ProcessingException("Could not store request XML in local repository: " + e);