code: public static long getRevisionNumber(ModuleIdentifier revisionId) {
          int revision;
          try {
              revision = Integer.parseInt(revisionId.getSlot());
          } catch (NumberFormatException nf) {
              revision = -1;
          }
          return revision;
      }
docs: Helper method to parse out the revision number from a {@link ModuleIdentifier}
  @return revision number or -1 if it couldn't be parsed