/** * Turns an OpenWFE MapAttribute or StringMapAttribute into * a java HashMap */ public static java.util.Map map2java (final MapAttribute ma) { java.util.Map result = new java.util.HashMap(ma.size()); java.util.Iterator it = ma.keySet().iterator(); while (it.hasNext()) { Attribute k = (Attribute)it.next(); Attribute v = (Attribute)ma.get(k); result.put(owfe2java(k), owfe2java(v)); } return result; }