@Override public TmpContextTypeMap<String, TmpParamType> unmarshal(TmpContextType tmpContextTypes) throws Exception { TmpContextTypeMap<String, TmpParamType> map = new TmpContextTypeMap<>(); for (TmpParamType pt : tmpContextTypes.getParam()) { map.getMap().put(pt.getId(), pt); } return map; }