Metamodel getMetamodel()
 Return an instance of the Metamodel interface for access to the metamodel of the persistence unit. 
- Return:
- an instance of {@link Metamodel}
- Throws:
- IllegalStateException - if the entity manager factory has been closed
- Since:
- JPA 2.0