protected void checkForExceptions(ReturnValue returnValue) { if (returnValue.getException() != null) { throw returnValue.getException(); } }