code: private static int[] toJavaVersionIntArray(String version, int limit) {
          if (version == null) {
              return ArrayUtils.EMPTY_INT_ARRAY;
          }
          String[] strings = StringUtils.split(version, "._- ");
          int[] ints = new int[Math.min(limit, strings.length)];
          int j = 0;
          for (int i = 0; i < strings.length && j < limit; i++) {
              String s = strings[i];
              if (s.length() > 0) {
                  try {
                      ints[j] = Integer.parseInt(s);
                      j++;
                  } catch (Exception e) {
                  }
              }
          }
          if (ints.length > j) {
              int[] newInts = new int[j];
              System.arraycopy(ints, 0, newInts, 0, j);
              ints = newInts;
          }
          return ints;
      }
docs: NOTE: Following 2 methods copied from org.apache.commons.lang.SystemUtils version 2.6 because of constrained visibility