}
} while (cns == null && (cls = cls.getSuperclass()) != null);
if (cns != null) {
return (Wrap<T>) cns.newInstance(new Environment(getEnvironment()), control);
} else {
throw new WrapperException(controlClass, wrapperClass);
}
} else {
return super.doWrap(control, controlClass, wrapperClass);
}
}