code: protected String stripVersionFromName(String name, String version) {
          int versionBeginIndex = name.lastIndexOf("-" + version);
          if ( versionBeginIndex != -1) {
              return name.substring(0, versionBeginIndex) + name.substring(versionBeginIndex + version.length() + 1);
          } else {
              return name;
          }
      }
docs: Strip version string from name