private static void GetAuxZipAliases(ZipFile file, LocalPackage pack) {
   ZipEntry ze;
   Enumeration<? extends ZipEntry> entries = file.entries();
   while (entries.hasMoreElements()) {
     ze = entries.nextElement();
     if (ze.getName().endsWith(".ms")) {
       if (ze.getName().equals("auto_include.ms")) {
         pack.addAutoInclude(new File(file.getName() + File.separator + ze.getName()));
       } else {
         try {
           pack.appendMS(
               Installer.parseISToString(file.getInputStream(ze)),
               new File(file.getName() + File.separator + ze.getName()));
         } catch (IOException ex) {
           Logger.getLogger(AliasCore.class.getName()).log(Level.SEVERE, null, ex);
         }
       }
     } else if (ze.getName().endsWith(".msa")) {
       try {
         pack.appendMSA(
             Installer.parseISToString(file.getInputStream(ze)),
             new File(file.getName() + File.separator + ze.getName()));
       } catch (IOException ex) {
         Logger.getLogger(AliasCore.class.getName()).log(Level.SEVERE, null, ex);
       }
     }
   }
 }
 public static void GetAuxAliases(File start, LocalPackage pack) {
   if (start.isDirectory()
       && !start.getName().endsWith(".disabled")
       && !start.getName().endsWith(".library")) {
     for (File f : start.listFiles()) {
       GetAuxAliases(f, pack);
     }
   } else if (start.isFile()) {
     if (start.getName().endsWith(".msa")) {
       try {
         pack.appendMSA(file_get_contents(start.getAbsolutePath()), start);
       } catch (IOException ex) {
         Logger.getLogger(AliasCore.class.getName()).log(Level.SEVERE, null, ex);
       }
     } else if (start.getName().endsWith(".ms")) {
       if (start.getName().equals("auto_include.ms")) {
         pack.addAutoInclude(start);
       } else {
         try {
           pack.appendMS(file_get_contents(start.getAbsolutePath()), start);
         } catch (IOException ex) {
           Logger.getLogger(AliasCore.class.getName()).log(Level.SEVERE, null, ex);
         }
       }
     } else if (start.getName().endsWith(".mslp")) {
       try {
         GetAuxZipAliases(new ZipFile(start), pack);
       } catch (ZipException ex) {
         Logger.getLogger(AliasCore.class.getName()).log(Level.SEVERE, null, ex);
       } catch (IOException ex) {
         Logger.getLogger(AliasCore.class.getName()).log(Level.SEVERE, null, ex);
       }
     }
   }
 }