Developing with the SDK > Using and Writing Data Models > NonJavaBeans Example: Basic Model Variant > 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 Code Sample 2.42.

// Create the Tree -> SDM model adapter.
//
   TreeSDMModel2 sdmModel = new TreeSDMModel2(treeModel);

Code Sample 2.42 Creating The Tree Model