@@ -0,0 +1,762 @@
+package me.nlighten.backend.cdi;%0A%0Aimport javax.enterprise.inject.Produces;%0Aimport javax.enterprise.inject.spi.InjectionPoint;%0Aimport javax.persistence.EntityManager;%0Aimport javax.persistence.PersistenceContext;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A%0A/**%0A * The Class Resources provides Java EE resources (e.g. persistence context, loggger).%0A */%0Apublic class Resources %7B%0A%0A  /** The entity manager resource. */%0A  @Produces%0A  @PersistenceContext%0A  private EntityManager em;%0A%0A  /**%0A   * Produce log.%0A   *%0A   * @param injectionPoint the injection point%0A   * @return the logger%0A   */%0A  @Produces%0A  public Logger produceLog(InjectionPoint injectionPoint) %7B%0A    return LoggerFactory.getLogger(injectionPoint.getMember().getDeclaringClass());%0A  %7D%0A%0A%7D%0A

add Resources.java