NXP-12228: add custom methods on a4j code to help detecting that ajax requests are done