private void initializeAttachmentParameter(Type epType)
{
if (epType == Type.JAXWS)
{
ReflectiveAttachmentRefScanner scanner = new ReflectiveAttachmentRefScanner();
AttachmentScanResult scanResult = scanner.scanBean(javaType);
if (scanResult != null)
{
if (log.isDebugEnabled())
log.debug("Identified attachment reference: " + xmlName + ", type=" + scanResult.getType());
if (scanResult.getType() == AttachmentScanResult.Type.XOP)
setXOP(true);
else
setSwaRef(true);
}
}