code: String getFeatureBaseName(String nameAndVersion) {
          int dashPosition = nameAndVersion.lastIndexOf('-');
          if (dashPosition != -1) {
              return nameAndVersion.substring(0, dashPosition + 1);
          } else {
              return nameAndVersion;
          }
      }
docs: Removes the version from the end of a feature symbolic name
  <p>
  The version is presumed to start after the last dash character in the name.
  <p>
  E.g. {@code getFeatureBaseName("com.example.featureA-1.0")} returns {@code "com.example.featureA-"}
  
  @param nameAndVersion the feature symbolic name
  @return the feature symbolic name with any version stripped