Estou com dúvida por que foi utilizado static
no método public static EntityManager getEntityManager()
package br.com.alura.loja.util;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
public class JPAUtil {
private static final EntityManagerFactory FACTORY = Persistence.createEntityManagerFactory("loja");
public static EntityManager getEntityManager() {
return FACTORY.createEntityManager();
}
}