class VoiceXmlInterpreter {

    public Dialog getDialog(final String id) {
        if (id == null) {
            LOGGER.warn("unable to get form with a null id");
            return null;
        }
        if (dialogs == null) {
            LOGGER.warn("dialogs not initialized. can not determine dialog"
                    + " with id '" + id + "'");
            return null;
        }

        for (Dialog dialog : dialogs) {
            final String currentId = dialog.getId();
            if (id.equalsIgnoreCase(currentId)) {
                return dialog;
            }
        }

        return null;
    }

    public  VoiceXmlInterpreter(final VoiceXmlInterpreterContext ctx);

}