Map<String, List<Annotation>> map = new HashMap();
ArrayList<Annotation> wsFeatures = new ArrayList<Annotation>();
// Enable MTOM explicitly then add another feature that disables it explicitly.
MTOMAnnot mtomFeature = new MTOMAnnot();
mtomFeature.setEnabled(true);
mtomFeature.setThreshold(MTOM_THRESHOLD);
wsFeatures.add(mtomFeature);
MTOMAnnot mtomFeature2 = new MTOMAnnot();
mtomFeature2.setEnabled(false);
wsFeatures.add(mtomFeature2);
map.put(ClientMetadataMTOMPortSEI.class.getName(), wsFeatures);
serviceDBC.getProperties().put(MDQConstants.SEI_FEATURES_MAP, map);