This method does not remove the object from the catalog, it "unnattaches" the object resolving any proxies.
In the even the specified object does not exist in the catalog it itself should be returned, this method should never return null.
204205206207208209210211212213214
ImportContext dettach(ImportContext context) { Catalog catalog = importer.getCatalog(); for (ImportTask task : context.getTasks()) { StoreInfo store = task.getStore(); if (store != null && store.getId() != null) { task.setStore(catalog.detach(store)); } } return context; }