Loading the data model

Most of the code in the sample is the same as in the first variant; the only difference is the way the model is created, see the following code example.
// Create the Tree -> SDM model adapter.
//
   TreeSDMModel2 sdmModel = new TreeSDMModel2(treeModel);