// insert before the next property's bean methods, if there are other
// properties.
if(fields.size() > 1 && (index + 1) < fields.size()){
IMethod method = null;
for(int ii = index + 1; method == null && ii < fields.size(); ii++){
IField property = (IField)fields.get(ii);
method = getBeanMethod(type, property, false);
}
if(method != null){
return method;
}
}
// insert after previous property's bean methods, if there are other
// properties.
if(fields.size() > 1 && index > 0){
IMethod method = null;
for(int ii = index - 1; method == null && ii >= 0; ii--){
IField property = (IField)fields.get(ii);
method = getBeanMethod(type, property, true);
}
if(method != null){
method = MethodUtils.getMethodAfter(type, method);
if(method != null){