The client was doing a SAP integration with a customer, and they needed a module to manage tendering and procurement processes. It was decided that the capabilities SAP offered were either too complex, or lacked certain nuances that the customer insisted on. Therefore, a custom solution was developed and integrated with SAP. The solution consisted of a web-based UI developed using JSF, and a REST service layer used for the SAP integration. The new features offered by Java EE 6, including CDI, JPA2 Criteria, JSF2 page compositing and composite components, JAX-RS, etc. were used extensively in order to reduce complexity and increase code reuse.