}
return inputBindingBuilder.build();
}
private ModelReference<?> reference(Type type, Annotation[] annotations, int i) {
Path pathAnnotation = (Path) findFirst(annotations, new Spec<Annotation>() {
public boolean isSatisfiedBy(Annotation element) {
return element.annotationType().equals(Path.class);
}
});
String path = pathAnnotation == null ? null : pathAnnotation.value();
ModelType<?> cast = ModelType.of(type);
return ModelReference.of(path == null ? null : ModelPath.path(path), cast, String.format("parameter %s", i + 1));
}