This is the sample of JSF 2.2 Resource Contract which was added since JSF 2.2(Java EE 7).