public static boolean addTag(String tag, Map<String, String> properties) {
        String tags = properties.get(TAGS);
        if (tags == null) {
            properties.put(TAGS, tag);
            return true;
        }
        Set<String> list = parseTags(tags);
        boolean result = list.add(tag);

        properties.put(TAGS, formatTags(list));
        return result;
    }
public static boolean addTag ( String tag , Map < String , String > properties ) { String tags = properties . get ( TAGS ) ; if ( tags == null ) { properties . put ( TAGS , tag ) ; return true ; } Set < String > list = parseTags ( tags ) ; boolean result = list . add ( tag ) ; properties . put ( TAGS , formatTags ( list ) ) ; return result ; }
@param tag
@param properties
@return true if the tag was added (ie wasn't already present in list)