name4 = getActionPath() + "." + key;
name4 = getFieldName() + "." + DEFAULT_NAME;
    protected String getMessageTemplate(Locale locale) {        String name1=null, name2=null, name3=null, name4=null, name5=null;        name1 = getActionPath() + "." + getFieldName() + "." + key;        String template = LocalizationUtility.getErrorMessage(locale, name1);        if (template == null) {            name2 = getActionPath() + "." + getFieldName() + "." + DEFAULT_NAME;            template = LocalizationUtility.getErrorMessage(locale, name2);        }        if (template == null) {            name3 = getFieldName() + "." + DEFAULT_NAME;            template = LocalizationUtility.getErrorMessage(locale, name3);        }        if (template == null) {            name4 = getActionPath() + "." + key;            template = LocalizationUtility.getErrorMessage(locale, name4);        }        if (template == null) {            name5 = defaultScope + "." + key;            template = LocalizationUtility.getErrorMessage(locale, name5);        }        if (template == null) {            throw new MissingResourceException(                    "Could not find an error message with any of the following keys: " +                    "'" + name1 + "', '" + name2 + "', '" + name3 + "', '" +                    name4 + "', '" + name5 + "'.", null, null            );        }        return template;    }