code: public static ErrorCode isIdValid(String id) {
          if (!isMustFieldValid(id, idRegEx)) {
              return ErrorCode.SERVICE_INSTANCE_ID_FORMAT_ERROR;
          }
          return ErrorCode.OK;
      }
docs: Validate the instance id.
  
  @param id
  the id String
  @return
  OK if matched the id pattern.