*/
public Object[] getChildren(Object parentElement) {
if (parentElement instanceof ValidationProcessor) {
// this is the root of our tree; at this point we want to return
// the list of all available plugins as children
ValidationProcessor processor = (ValidationProcessor) parentElement;
return processor.getPlugins().toArray();
} else if (parentElement instanceof PlugInDTO) {
// this is a plugin (validation test), so we'll grab instances of
// each test for this type
return validationProcessor.getTests(parentElement);
}