jgen.writeStartObject();
jgen.writeStringField("@type", "hydra:IriTemplateMapping");
jgen.writeStringField("hydra:variable", requestParamName);
if (actionDescriptor != null) {
jgen.writeBooleanField("hydra:required",
<BUG>actionDescriptor.getActionInputParameter(requestParamName)
</BUG>
.isRequired());
jgen.writeStringField("hydra:property",
<BUG>getExposedPropertyOrParamName(actionDescriptor.getActionInputParameter(requestParamName)));
</BUG>
}

jgen.writeStartObject();
jgen.writeStringField("@type", "hydra:IriTemplateMapping");
jgen.writeStringField("hydra:variable", requestParamName);
if (actionDescriptor != null) {
jgen.writeBooleanField("hydra:required",
actionDescriptor.getAnnotatedParameter(requestParamName)
.isRequired());
jgen.writeStringField("hydra:property",
getExposedPropertyOrParamName(actionDescriptor.getAnnotatedParameter(requestParamName)));
}
