Upgrade flexmark lib to latest version. Current Version has support java 8 and above. So this is for version 2