code: static final String extractNameType(final String outcome) {
      final Matcher matcher = typedOutcomePattern.matcher(outcome);
      if (matcher.matches()) {
        final String nameType = matcher.group(1);
        return nameType;
      }
  
      return null;
    }
docs: Gets the name type from the outcome
  
  @param outcome
  the outcome
  @return the name type, or null if not set