}
dest.send(constructor.createElementEnd(XML.REALMS_NAME));
dest.send(constructor.createCharacters("\n"));
dest.send(constructor.createElementEnd(XML.DATABASE_NAME));
dest.send(constructor.createCharacters("\n"));
dest.send(constructor.createDocumentEnd());
w.flush();
w.close();
getContext().getLogger().info("Backup finished.");
getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
} catch (SQLException ex) {