public static String toHex(String value) {return (value == null || value.length() == 0)? "[]": toHex(value.getBytes(LocaleUtil.CHARSET_1252));}

public static string ToHex(short value){return ToHex((long)value, 4);}
