}, new PairIterator<Integer>(Arrays.asList(pairs)));
} else {
// Collect method parameters that represent and EntityIndexConfig property value
entries = Transform.map(new Unary<Integer, Entry<String, Object>>() {
public Entry<String, Object> f(Integer index) {
IndexParam annotation = AnnotationHelper.getMethodArgumentAnnotationDeeply(method, index - 1, IndexParam.class);
return new Pair<String, Object>(config.getEntityIndexConfig(((IndexParam) annotation).value()).getPropertyName(), args[index - 1]);
}
}, Filter.grep(new Predicate<Integer>() {
public boolean f(Integer index) {
return AnnotationHelper.getMethodArgumentAnnotationDeeply(method, index - 1, IndexParam.class) != null;