public String formatMessage(int pos, Object... inserts) {
		StringBuilder formattedMessage = new StringBuilder();
		formattedMessage.append("XD").append(code);
		// switch (kind) {
		// case WARNING:
		// formattedMessage.append("W");
		// break;
		// case INFO:
		// formattedMessage.append("I");
		// break;
		// case ERROR:
		formattedMessage.append("E");
		// break;
		// }
		formattedMessage.append(":");
		if (pos != -1) {
			formattedMessage.append("(pos ").append(pos).append("): ");
		}
		formattedMessage.append(MessageFormat.format(message, inserts));
		return formattedMessage.toString();
	}
Produce a complete message including the prefix, the position (if known) and with the inserts applied to the
message.

@param pos the position, if less than zero it is ignored and not included in the message
@param inserts the inserts to put into the formatted message
@return a formatted message
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/job/dsl/JobDSLMessage.java