public static List<MetaModule> createAll() {
   List<MetaModule> result = new ArrayList<MetaModule>();
   for (Object oapp : MetaApplications.getMetaApplications()) {
     MetaApplication app = (MetaApplication) oapp;
     createDefaultMetaModules(app);
     createAdditionalMetaModules(app);
     result.addAll(app.getMetaModules());
   }
   return result;
 }
 private static void createDefaultMetaModules(MetaApplication app) {
   for (String className : AnnotatedClassParser.getManagedClassNames()) {
     if (className.endsWith(".GalleryImage") || className.endsWith(".AttachedFile")) continue;
     if (isEmbeddable(className)) continue;
     app.getMetaModule(Strings.lastToken(className, "."));
   }
 }
 private static void createAdditionalMetaModules(MetaApplication app) {
   for (String moduleName : AdditionalModules.get()) {
     app.getMetaModule(moduleName);
   }
 }