In Java Persistence Architecture (JPA) the persistence.xml resource provides information about the persistence unit. This resource must be read by the Persistence Provider which then does a lot of magic. However, if nobody can read resources from a named module then how can JPA perform its duties?