code: private static void configureCredentialDetailTypeMapping(ObjectMapper objectMapper) {
  		List<NamedType> subtypes = new ArrayList<>();
  		for (CredentialType type : CredentialType.values()) {
  			subtypes.add(new NamedType(type.getModelClass(), type.getValueType()));
  		}
  
  		registerSubtypes(objectMapper, subtypes);
  	}
docs: Configure type mapping for the {@literal value} field in the {@literal CredentialDetails}
  object.
  
  @param objectMapper the {@link ObjectMapper} to configure