if (!file.getParentFile().mkdirs()) {
if (!file.getParentFile().exists() && !file.getParentFile().mkdirs()) {
  private void writeProperties(JClass jsr175type,                               Properties props,                               File rootDir) throws IOException {    String propFile =        jsr175type.getQualifiedName().replace('.',File.separatorChar);    File file = new File(rootDir, propFile+PROPFILE_SUFFIX);    if (!file.getParentFile().mkdirs()) {      throw new IOException("failed to create "+file.getParentFile());    }    FileOutputStream fos = null;    try {      fos = new FileOutputStream(file);      props.store(fos,null);    } catch(RuntimeException e) {      throw e;    } catch(IOException e) {      throw e;    } finally {      if (fos != null) fos.close();    }  }