@@ -0,0 +1,1431 @@
+package org.jboss.as.quickstarts.hellosport.util;%0A%0Aimport java.util.logging.Logger;%0A%0Aimport javax.enterprise.context.RequestScoped;%0Aimport javax.enterprise.inject.Produces;%0Aimport javax.enterprise.inject.spi.InjectionPoint;%0Aimport javax.faces.context.FacesContext;%0Aimport javax.persistence.EntityManager;%0Aimport javax.persistence.PersistenceContext;%0Aimport javax.persistence.PersistenceContextType;%0A%0Aimport org.jboss.as.quickstarts.hellosport.rest.SportService;%0Aimport org.jboss.as.quickstarts.hellosport.rest.SportService.ServiceType;%0A%0A%0A/**%0A * This class uses CDI to alias Java EE resources, such as the persistence context, to CDI beans%0A *%0A * %3Cp%3E%0A * Example injection on a managed bean field:%0A * %3C/p%3E%0A *%0A * %3Cpre%3E%0A * &#064;Inject%0A * private EntityManager em;%0A * %3C/pre%3E%0A */%0Apublic class Resources %7B%0A    // use @SuppressWarnings to tell IDE to ignore warnings about field not being referenced directly%0A    @Produces%0A    @PersistenceContext(unitName=%22NFL%22, type=PersistenceContextType.EXTENDED)  //Mysql%0A    private EntityManager emNfl;%0A%0A    @Produces%0A    @PersistenceContext(unitName=%22NHL%22, type=PersistenceContextType.EXTENDED)  //PosgresSQL%0A    private EntityManager emNhl;%0A%0A    @Produces%0A    public Logger produceLog(InjectionPoint injectionPoint) %7B%0A        return Logger.getLogger(injectionPoint.getMember().getDeclaringClass().getName());%0A    %7D%0A%0A    @Produces%0A    @RequestScoped%0A    public FacesContext produceFacesContext() %7B%0A

Create Resources.java