private static void validateScriptProviderDef(final ProviderDef pluginDef) throws PluginException {
        if (null == pluginDef.getName() || "".equals(pluginDef.getName())) {
            throw new PluginException("Script plugin missing name");
        }
        if (null == pluginDef.getService() || "".equals(pluginDef.getService())) {
            throw new PluginException("Script plugin missing service");
        }
        if (null == pluginDef.getScriptFile() || "".equals(pluginDef.getScriptFile())) {
            throw new PluginException("Script plugin missing script-file");
        }

        //make sure service is pluggable service and is script pluggable
        /* final FrameworkSupportService service = framework.getService(pluginDef.getService());
        if (!(service instanceof PluggableService)) {
            throw new PluginException(
                "Service '" + pluginDef.getService() + "' specified for script plugin '" + pluginDef.getName()
                + "' is not valid: unsupported");
        }
        final PluggableService pservice = (PluggableService) service;
        if (!pservice.isScriptPluggable()) {
            throw new PluginException(
                "Service '" + pluginDef.getService() + "' specified for script plugin '" + pluginDef.getName()
                + "' is not valid: unsupported");
        }*/
    }
private static void validateScriptProviderDef ( final ProviderDef pluginDef ) throws PluginException { if ( null == pluginDef . getName ( ) || "" . equals ( pluginDef . getName ( ) ) ) { throw new PluginException ( "Script plugin missing name" ) ; } if ( null == pluginDef . getService ( ) || "" . equals ( pluginDef . getService ( ) ) ) { throw new PluginException ( "Script plugin missing service" ) ; } if ( null == pluginDef . getScriptFile ( ) || "" . equals ( pluginDef . getScriptFile ( ) ) ) { throw new PluginException ( "Script plugin missing script-file" ) ; } }
Validate script provider def