class CountryParser extends AbstractRegexParser {

    @Override
    public void parse(ParseContext parseContext)
    {
        Chunk currentChunk = parseContext.getCurrent();
        Matcher matcher = COUNTRY.matcher(currentChunk.getText());
        if(!matcher.matches())
        {
            patternNotMatched(parseContext, COUNTRY);
            return;
        }

        MatchBuilder builder = new MatchBuilder()
            .add(matcher)
            .add(MatchType.END_OF_INPUT)
            .add(parseContext)
            .add(COUNTRY, 1, TokenType.COUNTRY);

        handleMatch(builder.build(), ChunkType.COUNTY);
    }

}