public static List<CmsProperty> toList(Map<String, String> map) {

        if ((map == null) || (map.size() == 0)) {
            return Collections.emptyList();
        }

        List<CmsProperty> result = new ArrayList<CmsProperty>(map.size());
        Iterator<Map.Entry<String, String>> i = map.entrySet().iterator();
        while (i.hasNext()) {
            Map.Entry<String, String> e = i.next();
            CmsProperty property = new CmsProperty(e.getKey(), e.getValue(), null);
            result.add(property);
        }

        return result;
    }
public static List < CmsProperty > toList ( Map < String , String > map ) { if ( ( map == null ) || ( map . size ( ) == 0 ) ) { return Collections . emptyList ( ) ; } List < CmsProperty > result = new ArrayList < CmsProperty > ( map . size ( ) ) ; Iterator < Map . Entry < String , String > > i = map . entrySet ( ) . iterator ( ) ; while ( i . hasNext ( ) ) { Map . Entry < String , String > e = i . next ( ) ; CmsProperty property = new CmsProperty ( e . getKey ( ) , e . getValue ( ) , null ) ; result . add ( property ) ; } return result ; }
Transforms a Map of String values into a list of
{@link CmsProperty} objects with the property name set from the
Map key, and the structure value set from the Map value.<p>

@param map a Map with String keys and String values

@return a list of {@link CmsProperty} objects