public synchronized void addStyle(DefaultSynthStyle style, String path, int type) throws PatternSyntaxException { if (path == null) { // Make an empty path match all. path = ".*"; } if (type == NAME) { _styles.add(StyleAssociation.createStyleAssociation(path, style, type)); } else if (type == REGION) { _styles.add(StyleAssociation.createStyleAssociation(path.toLowerCase(), style, type)); } }