if (n1 == null) {
if (source instanceof InternalNode) {
String id = this.nodeIdFactory.getNodeId(source.getLabel().getUri());
InternalNode node = new InternalNode(id, new Label(source.getLabel()));
if (this.graphBuilder.addNode(node)) {
n1 = node;
} else continue;
}
else {
String id = new RandomGUID().toString();
ColumnNode node = new ColumnNode(id, id, ((ColumnNode)target).getColumnName(), null);
if (this.graphBuilder.addNode(node)) {
n1 = node;
} else continue;
}
visitedNodes.put(source, n1);
}
if (n2 == null) {
if (target instanceof InternalNode) {
String id = nodeIdFactory.getNodeId(target.getLabel().getUri());
InternalNode node = new InternalNode(id, new Label(target.getLabel()));
if (this.graphBuilder.addNode(node)) {
n2 = node;
} else continue;
}
else if(target instanceof LiteralNode) {