code: public static Version createVersion(String vStr) {
          if (vStr == null || vStr.isEmpty())
              return null;
          int major = 0;
          int minor = 0;
          int micro = 0;
          String qualifier = "";
          String v[] = vStr.split("\\.", 4);
          try {
              if (v.length > 0) {
                  major = Integer.valueOf(v[0]).intValue();
              }
              if (v.length > 1) {
                  minor = Integer.valueOf(v[1]).intValue();
              }
              if (v.length > 2) {
                  micro = Integer.valueOf(v[2]).intValue();
              }
              if (v.length > 3) {
                  qualifier = v[3];
              }
              return new Version(major, minor, micro, qualifier);
          } catch (NumberFormatException e) {
              return null;
          }
      }
docs: Creates a new object of type Version
  This method extracts the values for the object parameters from vStr
  
  @param vStr - string input