@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
resp.setContentType("text/plain");
Writer writer = new OutputStreamWriter(resp.getOutputStream());
StashUser currentUser = stashAuthenticationContext.getCurrentUser();
if (currentUser != null) {
writer.write("First ten keys for " + currentUser.getName() + ":\n");
for (SshKey key : sshKeyService.findSshKeysForUser(currentUser, new PageRequestImpl(0, 10)).getValues()) {
writer.write(key.getLabel() + " " + key.getText() + "\n");
}
writer.write("\n");
} else {