/* prividing GNU readline features using Jline library */
//String list = "list";
PrintWriter out = new PrintWriter(System.out);
reader.addCompletor(new ArgumentCompletor(
new SimpleCompletor(new String[]{"list", "info", "exit", "quit", "delete", "move", "view", "viewcontent", "queue", "exchange", "connection", "usermanagement", "virtualhost"})));
while ((line = reader.readLine("qpid-admin-$ ")) != null) {
out.flush();
if (removeSpaces(line).equalsIgnoreCase("quit") || removeSpaces(line).equalsIgnoreCase("exit"))
break;
else if (line.length() == 0)
continue;