class Protocol {

	public final static String getOutputCommand(ReturnObject rObject) {
		StringBuilder builder = new StringBuilder();

		// TODO Should be configurable
		// TODO ADD RETURN MESSAGE TO OTHER OUTPUT COMMAND
		builder.append(RETURN_MESSAGE);

		if (rObject.isError()) {
			builder.append(rObject.getCommandPart());
		} else {
			builder.append(SUCCESS);
			builder.append(rObject.getCommandPart());
		}
		builder.append(END_OUTPUT);

		return builder.toString();
	}

}