public static String formatForJavaKeyword(final String value)
    {
        if (ValidationUtil.isJavaKeyword(value))
        {
            final String keywordAppendToken = System.getProperty(SbeTool.KEYWORD_APPEND_TOKEN);
            if (null == keywordAppendToken)
            {
                throw new IllegalStateException(
                    "Invalid property name='" + value +
                    "' please correct the schema or consider setting system property: " + SbeTool.KEYWORD_APPEND_TOKEN);
            }

            return value + keywordAppendToken;
        }

        return value;
    }
Format a name for generated code.
<p>
If the formatted name is a keyword then {@link SbeTool#KEYWORD_APPEND_TOKEN} is appended if set.

@param value to be formatted.
@return the string formatted as a valid name.
@throws IllegalStateException if a keyword and {@link SbeTool#KEYWORD_APPEND_TOKEN} is not set.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/java/JavaUtil.java