private void mapPackageInfos(
     InternalCDOPackageInfo[] packageInfos, Connection connection, boolean unmap) {
   boolean supportingEcore = getStore().getRepository().isSupportingEcore();
   for (InternalCDOPackageInfo packageInfo : packageInfos) {
     EPackage ePackage = packageInfo.getEPackage();
     if (!CDOModelUtil.isCorePackage(ePackage) || supportingEcore) {
       mapClasses(connection, unmap, EMFUtil.getPersistentClasses(ePackage));
     }
   }
 }
 private void createAllClassMappings() {
   InternalRepository repository = (InternalRepository) getStore().getRepository();
   InternalCDOPackageRegistry packageRegistry = repository.getPackageRegistry(false);
   for (InternalCDOPackageInfo packageInfo : packageRegistry.getPackageInfos()) {
     if (!packageInfo.isSystemPackage()) {
       for (EClassifier eClassifier : packageInfo.getEPackage().getEClassifiers()) {
         if (eClassifier instanceof EClass) {
           EClass eClass = (EClass) eClassifier;
           if (isMapped(eClass)) {
             getClassMapping(eClass); // Get or create it
           }
         }
       }
     }
   }
 }