public static File getFolderByRootPackage(String rootFile, String packageFile) {
    if (packageFile == null) {
      packageFile = "";
    }
    if (rootFile == null) {
      rootFile = ".";
    }
    File file = new File(rootFile + "/" + packageFile.replace(".", "/"));
    if (!file.isDirectory()) {
      file.mkdirs();
    }
    return file;
  }