code: public static List<Package> getAllPackages(String packageName) throws CachingException {
          List<Package> allPackages = new ArrayList<>();
          for (Package packageVO : getPackageList()) {
              if (packageVO.getName().equals(packageName)) {
                  allPackages.add(packageVO);
              }
          }
          return allPackages;
      }
docs: To get all the versions of packageVOs(including archive) based on package name
  @param packageName
  @return
  @throws CachingException