LPS-48640 pre-check, logic is not final

Hi Ray,

Can you please take a look at the compilation error I get upon executing "ant all" in the ES module as we discussed via zulip?

Thank you!