return delegate.getMimeType(value, operation);
}
public void write(Object value, OutputStream output, Operation operation)
throws IOException, org.geoserver.platform.ServiceException {
VersionedDescribeResults results = (VersionedDescribeResults) value;
if (!results.isVersioned()) {
delegate.write(results.getFeatureTypeInfo(), output, operation);
} else {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
delegate.write(results.getFeatureTypeInfo(), bos, operation);
String describe = bos.toString();
// now let's do the transformation magic, sigh...
for (int i = 0; i < REPLACEMENTS.length; i++) {
describe = describe.replaceAll(REPLACEMENTS[i][0],