class PrettyDisplayUtils {

    public static String displayHeadline(String head, Character padChar) {
        String ret = " " + head + " ";
        int paddingLength = (DEFAULT_LINE_WIDTH - ret.length()) / 2;
        ret = StringUtils.leftPad(ret, ret.length() + paddingLength, padChar);
        ret = StringUtils.rightPad(ret, ret.length() + paddingLength, padChar);
        ret += "\n";
        return ret;
    }

}