}
public static TreeNode createMethodInvoker (String name, Object instance,
String category, Method m){
TreeNode tn = new MethodInvokerImpl();
tn.setName(name);
((MethodInvoker)tn).setInstance (instance);
((MethodInvoker)tn).setMethod (m);
tn.setCategory(category);
tn.setEnabled(true);
return tn;
}