Map<String, List<Annotation>> map = new HashMap();
ArrayList<Annotation> wsFeatures = new ArrayList<Annotation>();
// Enable RespectBinding explicitly on one port
RespectBindingAnnot respectBindingFeature = new RespectBindingAnnot();
respectBindingFeature.setEnabled(true);
wsFeatures.add(respectBindingFeature);
map.put(ClientMetadataRespectBindingPortSEI.class.getName(), wsFeatures);
// Disable RespectBinding explicitly on a different port
ArrayList<Annotation> wsFeatures2 = new ArrayList<Annotation>();
RespectBindingAnnot respectBindingFeatureDisable = new RespectBindingAnnot();
respectBindingFeatureDisable.setEnabled(false);
wsFeatures2.add(respectBindingFeatureDisable);
map.put(ClientMetadataRespectBindingPortSEI2.class.getName(), wsFeatures2);
serviceDBC.getProperties().put(MDQConstants.SEI_FEATURES_MAP, map);
ServiceDelegate.setServiceMetadata(serviceDBC);