hydra-spring/src/main/java/de/escalon/hypermedia/spring/hydra/LinkListSerializer.java
private void writeHydraVariableMapping(JsonGenerator jgen, @Nullable ActionDescriptor annotatedParameters,
                                           Collection<String> variableNames) throws IOException {
        if (annotatedParameters != null) {
            for (String variableName : variableNames) {
                // TODO: find also @Input
                ActionInputParameter annotatedParameter = annotatedParameters.getActionInputParameter(variableName);
                // TODO access @Input parameter, too
                // only unsatisfied parameters become hydra variables
                if (annotatedParameter != null && annotatedParameter.getValue() == null) {
                    jgen.writeStartObject();
                    jgen.writeStringField("@type", "hydra:IriTemplateMapping");
                    jgen.writeStringField("hydra:variable", annotatedParameter.getParameterName());
                    jgen.writeBooleanField("hydra:required",
                            annotatedParameter
                                    .isRequired());
                    jgen.writeStringField("hydra:property",
                            getExposedPropertyOrParamName(annotatedParameter));
                    jgen.writeEndObject();
                }
            }
        }
    }
private void writeHydraVariableMapping(JsonGenerator jgen, @Nullable ActionDescriptor annotatedParameters,
                                           Collection<String> variableNames) throws IOException {
        if (annotatedParameters != null) {
            for (String variableName : variableNames) {
                // TODO: find also @Input
                ActionInputParameter annotatedParameter = annotatedParameters.getActionInputParameter(variableName);
                // TODO access @Input parameter, too
                // only unsatisfied parameters become hydra variables
                if (annotatedParameter != null && annotatedParameter.getValue() == null) {
                    jgen.writeStartObject();
                    jgen.writeStringField("@type", "hydra:IriTemplateMapping");
                    jgen.writeStringField("hydra:variable", annotatedParameter.getParameterName());
                    jgen.writeBooleanField("hydra:required",
                            annotatedParameter
                                    .isRequired());
                    jgen.writeStringField("hydra:property",
                            getExposedPropertyOrParamName(annotatedParameter));
                    jgen.writeEndObject();
                }
            }
        }
    }
}