return new OngoingInjecter() {
public Object thenInject() {
try {
if (!new BeanPropertySetter(fieldInstance, field).set(matchingMock)) {
new FieldSetter(fieldInstance, field).set(matchingMock);
}
} catch (RuntimeException e) {
new Reporter().cannotInjectDependency(field, matchingMock, e);
}
return matchingMock;