} else if (original instanceof FeatureTypeInfo) {
prototype = new FeatureTypeInfoImpl(catalog);
} else if (original instanceof CoverageInfo) {
prototype = new CoverageInfoImpl(catalog);
} else if (original instanceof WMSLayerInfo) {
prototype = new WMSLayerInfoImpl((CatalogImpl) SecureCatalogImpl.unwrap(catalog));
} else {
throw new IllegalArgumentException(original.toString());
}
return prototype;
}