code: protected static String formatApiVersion(String version) {
          if (StringUtils.isBlank(version)) {
              return VERSION;
          } else {
              final Matcher matcher = VERSION_PATTERN.matcher(version);
              if (matcher.matches()) {
                  return String.format("%s.%s", matcher.group(1), matcher.group(2));
              } else {
                  return VERSION;
              }
          }
      }
docs: Build a proper api version
  
  @param version raw version
  @return api version
  @see <a href="http://dev.redlink.io/sdk#introduction">api/sdk versioning</a>