code: public static void writeableDirectory(final String path, String message) throws IllegalArgumentException {
          notNullOrEmpty(path, message);
          File file = new File(path);
          if (!file.exists() || !file.isDirectory() || !file.canWrite() || !file.canExecute()) {
              throw new IllegalArgumentException(message);
          }
  
      }
docs: FIXME me animal sniffer, this is 1.6 API only