private static boolean hasNodeStyleClass(Node node, String className) {
        String c = DOM.getElementAttribute(node.<com.google.gwt.user.client.Element>cast(), "class");
        if (c != null && c.length() > 0) {
            String[] classes = c.split(" ");
            for (int i = 0; i < classes.length; i++) {
                if (classes[i].equalsIgnoreCase(className)) {
                    return true;
                }
            }
        }
        return false;
    }