class ScriptStrategy extends AbstractTagStrategy {

    public void execute(final VoiceXmlInterpreterContext context,
            final VoiceXmlInterpreter interpreter,
            final FormInterpretationAlgorithm fia, final FormItem item,
            final VoiceXmlNode node) throws JVoiceXMLEvent {
        // This should be done in the validate, but there we do not
        // have the node to check if an inline script exists.
        final String script = node.getTextContent().trim();
        if ((script.length() == 0) && (src == null)) {
            throw new BadFetchError(
                    "Exactly one of \"src\", \"srcexpr\", or an inline script "
                            + "must be specified!");
        }

        final DataModel model = context.getDataModel();
        if (src == null) {
            processInternalScript(script, model);
        } else {
            processExternalScript(context, model);
        }
    }

      ScriptStrategy();

}