}
if (handlerChain.getProtocolBindings() != null) {
serviceRefHandlerChain.setProtocolBindings(handlerChain.getProtocolBindings());
}
for (PortComponentHandlerType srcHandler : handlerChain.getHandlerArray()) {
HandlerType serviceRefHandler = serviceRefHandlerChain.addNewHandler();
serviceRefHandler.setId(srcHandler.getId());
//Copy HandlerName
org.apache.geronimo.xbeans.javaee.String srcHandlerName = srcHandler.getHandlerName();
org.apache.geronimo.xbeans.javaee6.String desHandlerName = serviceRefHandler.addNewHandlerName();
desHandlerName.setStringValue(srcHandlerName.getStringValue());
desHandlerName.setId(srcHandlerName.getId());
//Copy HandlerClass
org.apache.geronimo.xbeans.javaee.String srcHandlerClass = srcHandler.getHandlerClass();
org.apache.geronimo.xbeans.javaee6.String desHandlerClass = serviceRefHandler.addNewHandlerClass();
desHandlerClass.setId(srcHandlerClass.getId());
desHandlerClass.setStringValue(srcHandlerClass.getStringValue());
//Copy DescriptionArray
for (org.apache.geronimo.xbeans.javaee.DescriptionType srcDescription : srcHandler.getDescriptionArray()) {
DescriptionType desDescription = serviceRefHandler.addNewDescription();
desDescription.setStringValue(srcDescription.getStringValue());
desDescription.setId(srcDescription.getId());
}
//Copy InitParamArray
for (org.apache.geronimo.xbeans.javaee.ParamValueType srcParamValue : srcHandler.getInitParamArray()) {
ParamValueType desParamValue = serviceRefHandler.addNewInitParam();
srcParamValue.setId(desParamValue.getId());
desParamValue.addNewParamName().setStringValue(srcParamValue.getParamName().getStringValue());
desParamValue.addNewParamValue().setStringValue(srcParamValue.getParamValue().getStringValue());
for (org.apache.geronimo.xbeans.javaee.DescriptionType srcDescription : srcParamValue.getDescriptionArray()) {
DescriptionType desDescription = desParamValue.addNewDescription();
desDescription.setId(srcDescription.getId());
desDescription.setStringValue(srcDescription.getStringValue());
}
}
//Copy SoapHeaderArray
for (org.apache.geronimo.xbeans.javaee.XsdQNameType srcSOAPHeader : srcHandler.getSoapHeaderArray()) {
XsdQNameType desSOAPHeader = serviceRefHandler.addNewSoapHeader();
desSOAPHeader.setId(srcSOAPHeader.getId());
desSOAPHeader.setQNameValue(srcSOAPHeader.getQNameValue());
}
//Copy SoapRoleArray
for (org.apache.geronimo.xbeans.javaee.String srcSOAPRole : srcHandler.getSoapRoleArray()) {
org.apache.geronimo.xbeans.javaee6.String desSOAPRole = serviceRefHandler.addNewSoapRole();
desSOAPRole.setId(srcSOAPRole.getId());
desSOAPRole.setStringValue(srcSOAPRole.getStringValue());
}
}
}