FacetEditorsStateBean () { for (Map.Entry<String, Object> entry : myFacetTypeStates.entrySet()) { FacetTypeStateBean bean = new FacetTypeStateBean(); bean.setState(XmlSerializer.serialize(entry.getValue())); myBean.getFacetTypeElements().put(entry.getKey(), bean); } return myBean; }