private String toHexString(byte[] bytes) {
        StringBuilder sb =  new StringBuilder(bytes.length * 2);
        for (byte aByte : bytes) {
            sb.append(String.format("%02x", aByte));
        }
        return sb.toString();
    }
Normalizes a config definition line. Each string is normalized according to the
rules of config and definition files before they are used:
<ul>
<li>Remove trailing space.<li>
<li>Remove trailing comments, and spaces before trailing comments.</li>
<li>Remove empty lines</li>
<li>Keep comment lines</li>
</ul>
The supplied list is changed in-place

@param line a config definition line
@return a normalized config definition line
configgen/src/main/java/com/yahoo/config/codegen/NormalizedDefinition.java