private void extract(String name) {
    File actual = new File(getDataFolder(), name);
    if (!actual.exists()) {
      InputStream input = getClass().getResourceAsStream("/" + name);
      if (input != null) {
        FileOutputStream output = null;
        try
        {
          output = new FileOutputStream(actual);
          byte[] buf = new byte[8192];
          int length = 0;

          while ((length = input.read(buf)) > 0) {
            output.write(buf, 0, length);
          }

          System.out.println("[iConomy] Default setup file written: " + name);
        } catch (Exception e) {
          e.printStackTrace();
        } finally {
          try {
            if (input != null)
              input.close();
          } catch (Exception e) {
          }
          try {
            if (output != null)
              output.close();
          }
          catch (Exception e)
          {
          }
        }
      }
    }
  }