String[] methods = prov.getMethods();
BasicProvider provider = null;
if (prov instanceof V2DDComProvider) provider = new ComProvider();
if (prov instanceof V2DDScriptProvider) provider = new BSFProvider();
// ROBJ 911 -- this will need to be fixed now that JavaProvider really
// exists! But I am not sure of the intended semantics here. Nor am
// I sure whether any test code exists for this...?!?!
if (provider == null) provider = new RPCProvider();