public static void load() {
      try {
         File folder = new File(FolderSettings.PROFILE_FOLDER);
         if (folder.isDirectory()) {
            for (File f : folder.listFiles()) {
               FileInputStream fis;
               ObjectInputStream in;
               fis = new FileInputStream(f);
               in = new ObjectInputStream(fis);
               try {
                  Profile p = (Profile) in.readObject();
                  add(p);
               } catch (ClassNotFoundException e) {
                  Logging.errorException(e);
               } catch (IOException ex) {
                  Logging.errorException(ex);
               } finally {
                  if (in != null) {
                     try {
                        in.close();
                     } catch (IOException e) {
                        Logging.errorException(e);
                     }
                  }
                  if (fis != null) {
                     try {
                        fis.close();
                     } catch (IOException e) {
                        Logging.errorException(e);
                     }
                  }
               }
            }
         }
      } catch (IOException ex) {
         Logging.errorException(ex);
      }
   }