for (Entry<Method, Object> entry : invocationResults.entrySet()) {
Method method = entry.getKey();
Object result = entry.getValue();
CaptureInScope annotation;
annotation = Preconditions
.checkNotNull(method.getAnnotation(CaptureInScope.class));
Class<? extends Annotation> bindingAnnotation = annotation.value();
// The construction of the key will fail if the annotation is not an
// instance of BindingAnnotation. We could do a Preconditions check here,
// but it'd be simply redundant.
Key key = bindingAnnotation == DEFAULT_ANNOTATION_VALUE ?
Key.get(method.getGenericReturnType()) :