Method setResultsMethod = ReflectionUtils.findMethod(returnTypeClass, setterMethodName, resultReturnTypeClass);
final AtomicReference<Method> altSetResultsMethod = new AtomicReference<Method>();
// issue with ReflectionUtils, setterResultsMethod sometimes null from the command line (not getter?)
if (setResultsMethod == null) {
ReflectionUtils.doWithMethods(returnTypeClass, new MethodCallback() {
@Override
public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException {
if (setterMethodName.equals(method.getName())) {
altSetResultsMethod.set(method);
logger.debug("Unable to use ReflectionUtils to find setter. returnTypeClass={} method={} resultReturnTypeClass={}",