- Resource copy = null;
- if (graph.isInstanceOf(source, STR.Connection)) {
- // Configuration connections are not named, can't use TG copy for
- // them at the moment.
- copy = CopyAdvisorUtil.copy2(graph, source, null, map);
- } else {
-// Resource model = graph.syncRequest(new PossibleModel(targetContainer));
-// copy = CopyAdvisorUtil.copy4(graph, source, model);
- copy = CopyAdvisorUtil.copy2(graph, source, null, map);
- }
+ Resource copy = CopyAdvisorUtil.copy2(graph, source, null, map);