ose(@Disposes @UserDatabase EntityManager em) {
         em.close();
     }

 }
 </pre>

 <pre>
 public class Resources {

     &#064;PersistenceContext
     &#064;Produces
     &#064;UserDatabase
     private EntityManager em;

     public void close(@Disposes @UserDatabase EntityManager em) {
         em.close();
     }

 }
 </pre>

 <p>
 A disposer method allows the application to perform customized cleanup of an object returned by a
 <a href="Produces.html" title="annotation interface in jakarta.enterpr