public Metamodel getMetamodel(String persistenceUnit)
    {
        Map<String, Metamodel> model = getMetamodelMap();
        return persistenceUnit != null && model.containsKey(persistenceUnit) ? model.get(persistenceUnit) : null;
    }
public Metamodel getMetamodel ( String persistenceUnit ) { Map < String , Metamodel > model = getMetamodelMap ( ) ; return persistenceUnit != null && model . containsKey ( persistenceUnit ) ? model . get ( persistenceUnit ) : null ; }
Gets the metamodel.

@param persistenceUnit
the persistence unit
@return the metamodel