}
DbAdapter adapter = createCustomAdapter(loader.getContext(), unit);
DataNode node = new DataNode(name);
if (adapter == null) {
adapter = new AutoAdapter(new NodeDataSource(node));
}
node.setAdapter(adapter);
node.setDataSource(dataSource);
node.addDataMap(cayenneMap);