private CatalogInfo prototype(CatalogInfo original, Catalog catalog) {
CatalogInfo prototype;
if (original instanceof WorkspaceInfo) {
prototype = new WorkspaceInfoImpl();
} else if (original instanceof DataStoreInfo) {
prototype = new DataStoreInfoImpl(catalog);
} else if (original instanceof CoverageStoreInfo) {
prototype = new CoverageStoreInfoImpl(catalog);
} else if (original instanceof WMSStoreInfo) {
prototype = new WMSStoreInfoImpl((CatalogImpl) SecureCatalogImpl.unwrap(catalog));
} else if (original instanceof FeatureTypeInfo) {