public static String getHeaderBorder(Map<Integer, TableHeader> headers) {

		final StringBuilder headerBorder = new StringBuilder();

		for (TableHeader header : headers.values()) {
			headerBorder.append(CommonUtils.padRight("  ", header.getWidth() + 2, '-'));
		}
		headerBorder.append("\n");

		return headerBorder.toString();
	}
Renders the Table header border, based on the map of provided headers.

@param headers Map of headers containing meta information e.g. name+width of header
@return Returns the rendered header border as String
spring-xd-shell/src/main/java/org/springframework/xd/shell/util/UiUtils.java