TreeControl control = new TreeControl(root);
if (treeBuildersStr != null) {
Class treeBuilderImpl;
TreeBuilder treeBuilderBase;
ArrayList treeBuilders = new ArrayList(INIT_PLUGIN_MAX);
int i = 0;
StringTokenizer st = new StringTokenizer(treeBuildersStr, ",");
while (st.hasMoreTokens()) {
treeBuilders.add(st.nextToken().trim());
}
if (treeBuilders.size() == 0)
treeBuilders.add(treeBuildersStr.trim());
for (i = 0; i < treeBuilders.size(); i++) {
try {
treeBuilderImpl =
Class.forName((String) treeBuilders.get(i));
treeBuilderBase =
(TreeBuilder) treeBuilderImpl.newInstance();
treeBuilderBase.buildTree(control, servlet, request);
} catch (Throwable t) {
t.printStackTrace(System.out);
}
}
}