code: @Trivial
      public static String getSymbolicNameWithoutMinorOrMicroVersionPart(String symbolicName) {
          if (symbolicName.matches(".*\\d+\\.\\d+\\.\\d+$")) {
              return symbolicName.replaceAll("\\.\\d+\\.\\d+$", "");
          } else {
              return symbolicName;
          }
      }
docs: And removes the last ".<number.<number>"