List<ParameterImpl> rp = sync.getResponseParameters();
int size = 0;
for( ParameterImpl param : rp ) {
if (param.isWrapperStyle()) {
WrapperParameter wrapParam = (WrapperParameter)param;
size += wrapParam.getWrapperChildren().size();
if (sync.getBinding().getStyle() == Style.DOCUMENT) {
// doc/asyncBeanClass - asyncBeanClass bean is in async signature
// Add 2 or more so that it is considered as async bean case
size += 2;
}
} else {
++size;
}
}
Class tempWrap = null;
if (size > 1) {
rp = jm.getResponseParameters();
for(ParameterImpl param : rp) {
if (param.isWrapperStyle()) {
WrapperParameter wrapParam = (WrapperParameter)param;
if (sync.getBinding().getStyle() == Style.DOCUMENT) {
// doc/asyncBeanClass style
tempWrap = (Class)wrapParam.getTypeReference().type;
break;
}
for(ParameterImpl p : wrapParam.getWrapperChildren()) {
if (p.getIndex() == -1) {
tempWrap = (Class)p.getTypeReference().type;
break;
}
}