NXP-14413: migrate some templates and methods to JSF2