code: public LocalDistribution getDistribution(WrapperConfiguration configuration) {
                  String baseName = getDistName(configuration.getDistribution());
                  String distName = removeExtension(baseName);
                  String rootDirName = rootDirName(distName, configuration);
  
                  String distDirPathName = configuration.getDistributionPath() + "/" + rootDirName;
                  File distDir = new File(getBaseDir(configuration.getDistributionBase()), distDirPathName);
  
                  String distZipFilename = configuration.getZipPath() + "/" + rootDirName + "/" + baseName;
                  File distZip = new File(getBaseDir(configuration.getZipBase()), distZipFilename);
  
                  return new LocalDistribution(distDir, distZip);
          }
docs: Determines the local locations for the distribution to use given the supplied configuration.