private String getHexColor(Color color) {
private static String getHexColor(Color color) {
    private String getHexColor(Color color) {        StringBuffer buffer = new StringBuffer("#");        buffer.append(getHex(color.getRed()));        buffer.append(getHex(color.getGreen()));        buffer.append(getHex(color.getBlue()));        return buffer.toString();    }