PortComponentRef portComponentRef = getPortComponentRef(serviceRef, webServiceRefType.getName());
for (Annotation webServiceFeatureAnnotation : webServiceFeatureAnnotations) {
Class<? extends Annotation> webServiceFeatureAnnotationType = webServiceFeatureAnnotation.annotationType();
if (webServiceFeatureAnnotationType == MTOM.class) {
MTOM mtom = (MTOM) webServiceFeatureAnnotation;
if (portComponentRef.getMtomThreshold() == null) {
portComponentRef.setMtomThreshold(mtom.threshold());
}
if (portComponentRef.getEnableMtom() == null) {
portComponentRef.setEnableMtom(mtom.enabled());
}
} else if (webServiceFeatureAnnotationType == javax.xml.ws.soap.Addressing.class) {
javax.xml.ws.soap.Addressing addressingAnnotation = (javax.xml.ws.soap.Addressing) webServiceFeatureAnnotation;
Addressing addressing = portComponentRef.getAddressing();
if (addressing == null) {