code: public String convertToPath(String className) {
          final String fixedDir = destDirName.endsWith(File.separator) ? destDirName: destDirName + File.separator;
          final String fixedClassName = className.replace('.', '/');
          return fixedDir + fixedClassName + ".java";
      }
docs: Turns a class name like foo.bar.Baz into the path destDirName/foo/bar/Baz.java
  
  @param className
  @return a path name based onthe class and destDirName