Iterator<UnifiedPortComponentRefMetaData> it = epMetaData.getServiceRefContrib().iterator();
while(it.hasNext())
{
UnifiedPortComponentRefMetaData portComp = it.next();
if(epMetaData.matches(portComp))
{
log.debug("Processing service-ref contribution on portType: "+epMetaData.getPortTypeName());
// process MTOM overrides
if(portComp.getEnableMTOM())
{
String bindingId = epMetaData.getBindingId();
if(bindingId.equals(Constants.SOAP11HTTP_BINDING))
epMetaData.setBindingId(Constants.SOAP11HTTP_MTOM_BINDING);
else if(bindingId.equals(Constants.SOAP12HTTP_BINDING))
epMetaData.setBindingId(Constants.SOAP12HTTP_MTOM_BINDING);
}
// process stub properties
for(UnifiedStubPropertyMetaData stubProp: portComp.getStubProperties())
{
epMetaData.getProperties().put(stubProp.getPropName(), stubProp.getPropValue());
}
// process call properties
for(UnifiedCallPropertyMetaData callProp: portComp.getCallProperties())
{
epMetaData.getProperties().put(callProp.getPropName(), callProp.getPropValue());
}
}