public String readCommand() throws Throwable {
		String result;
		StringBuilder buffer;
		String line;
		String prompt;
			
		prompt = "> ";
		buffer = new StringBuilder();
		do {
			System.out.printf(prompt);
			line = reader.readLine();
			line = StringUtils.trim(line);
			buffer.append(line);
			buffer.append(' ');
			prompt = "\t> ";
		} while (line != null && !line.endsWith(";"));
		
		if (line != null && line.endsWith(";") && buffer.length() >= 2)
			buffer.deleteCharAt(buffer.length() - 2);
		
		result = StringUtils.trim(buffer.toString());
		
		return result;
	}