code:     public static VersionNumber getVersion() {
          try {
              return new VersionNumber(VERSION);
          } catch (NumberFormatException e) {
              try {
                  // for non-released version of Hudson, this looks like "1.345 (private-foobar), so try to approximate.
                  int idx = VERSION.indexOf(' ');
                  if (idx>0)
                      return new VersionNumber(VERSION.substring(0,idx));
              } catch (NumberFormatException _) {
                  // fall through
              }
  
              // totally unparseable
              return null;
          } catch (IllegalArgumentException e) {
              // totally unparseable
              return null;
          }
      }
  
      /**
       * Hash of {@link #VERSION}.
       */
  