import org.simantics.utils.datastructures.Pair;
import org.simantics.utils.datastructures.Triple;
import org.simantics.utils.strings.AlphanumComparator;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import gnu.trove.set.hash.THashSet;
*/
public class UserComponentMigration {
+ private static final Logger LOGGER = LoggerFactory.getLogger(UserComponentMigration.class);
+
public static void migrateUserComponents(WriteGraph graph, Resource source, Resource target, Collection<Resource> components) throws DatabaseException {
MigrateModel model = getComponentTypeModel(graph, source, target, null);
if (model.instances.isEmpty())
Resource type = graph.getPossibleType(instance, STR.Component);
String uri = graph.getPossibleURI(instance);
if (type == null || uri == null) {
- System.err.println("CANNOT MIGRATE INSTANCE DUE TO TYPING PROBLEM: " + NameUtils.getURIOrSafeNameInternal(graph, instance));
+ LOGGER.warn("CANNOT MIGRATE INSTANCE DUE TO TYPING PROBLEM: " + NameUtils.getURIOrSafeNameInternal(graph, instance));
continue;
}
NamedResource best = matchBest(graph, type, targetOntology);