if(psmm instanceof OptimizedDBBPTreeGeneration){
tree = ((OptimizedDBBPTreeGeneration<TripleKey, Triple>)psmm).getDBBPTree();
} else if(psmm instanceof DBBPTree) {
tree = (DBBPTree<TripleKey, Triple>) psmm;
} else {
final NodeDeSerializer<TripleKey, Triple> nodeDeSerializer = (LiteralFactory.getMapType() == LiteralFactory.MapType.LAZYLITERAL || LiteralFactory.getMapType() == LiteralFactory.MapType.LAZYLITERALWITHOUTINITIALPREFIXCODEMAP) ? new LazyLiteralNodeDeSerializer(order) : new StandardNodeDeSerializer<TripleKey, Triple>(TripleKey.class, Triple.class);
tree = new DBBPTree<TripleKey, Triple>(k, k_, nodeDeSerializer, TripleKey.class, Triple.class);
}
tree.generateDBBPTree(generator);
switch(order){
default: