if (delegateClass == null) {
// let's default to something sensible. If the parameter is empty we return a
// TextFeatureInfoResponse, so let's do the same thing here. See the "hack" comment in
// GetFeatureInfoKVPReader.java.
delegateClass = new TextFeatureInfoResponse().getClass();
}
try {
curDelegate = (GetFeatureInfoDelegate) delegateClass.newInstance();
} catch (Exception ex) {