class InputItemRecognitionEventStrategy extends AbstractInputItemEventStrategy<FieldFormItem> implements EventStrategyPrototype {

    @Override
    protected boolean handleEvent(final FieldFormItem field,
            final JVoiceXMLEvent event) throws JVoiceXMLEvent {
        // First, set the application last result values
        final RecognitionEvent recognitionEvent = (RecognitionEvent) event;
        final RecognitionResult result = recognitionEvent
                .getRecognitionResult();
        setApplicationLastResult(result);

        // Check if a (correct) confidencelevel was specified.
        // If there was no confidencelevel set, refer to the default of 0.5
        // see http://www.w3.org/TR/voicexml20/#dml6.3.2
        final VoiceXmlInterpreterContext ctx = getVoiceXmlInterpreterContext();
        final String confidencelevel = ctx
                .getProperty("confidencelevel", "0.5");
        float level;
        try {
            level = Float.parseFloat(confidencelevel);
        } catch (Exception e) {
            throw new SemanticError("The <property>'s confidencelevel '"
                    + confidencelevel + "'could not be parsed.", e);
        }
        if (result.getConfidence() < level) {
            if (LOGGER.isDebugEnabled()) {
                LOGGER.debug("result not accepted: "
                        + "confidence was too low: " + "expected: " + level
                        + ", " + "actual: " + result.getConfidence());
            }
            throw new NomatchEvent(recognitionEvent.getSource(),
                    recognitionEvent.getSessionId(), result);
        }

        // Simply reject, if the result was not accepted
        if (!result.isAccepted()) {
            if (LOGGER.isDebugEnabled()) {
                LOGGER.debug("result not accepted");
            }
            return false;
        }
        return true;
    }

      InputItemRecognitionEventStrategy();
    public  InputItemRecognitionEventStrategy(
            final VoiceXmlInterpreterContext ctx,
            final VoiceXmlInterpreter interpreter,
            final FormInterpretationAlgorithm algorithm,
            final FormItem formItem);

}