public static List<TagEntryAO> tagsMapToTagEntries(Map<String, String> tagsMap) {

    	if (tagsMap==null)
    		return Collections.EMPTY_LIST;

        List<TagEntryAO> tagEntries = new ArrayList<>(tagsMap.size());

        for (Map.Entry<String,String> entry : tagsMap.entrySet())
            tagEntries.add(
                    new TagEntryAO(entry.getKey(), entry.getValue())
            );

        return tagEntries;

    }
public static List < TagEntryAO > tagsMapToTagEntries ( Map < String , String > tagsMap ) { if ( tagsMap == null ) return Collections . EMPTY_LIST ; List < TagEntryAO > tagEntries = new ArrayList < > ( tagsMap . size ( ) ) ; for ( Map . Entry < String , String > entry : tagsMap . entrySet ( ) ) tagEntries . add ( new TagEntryAO ( entry . getKey ( ) , entry . getValue ( ) ) ) ; return tagEntries ; }
Creates tags info beans from given
tags map with tag names as keys and tag values as map values

@param tagsMap map of tag names and values
@return list of tag entries