String input;
while (true) {
input = this.bufferedReader.readLine();
try {
Command command = Command.parseInput(input);
if (command.isQuit())
break;
this.writeFileContent(command.getParameter(0), command.isHead());
this.printWriter.println(command.getAbortKey());
this.printWriter.flush();
} catch (InvalidUserInput e) {
Log.log("Invalid command received");
} catch (NullPointerException e) {