public ActionResult lookup(ActionRequest actionRequest, Object resultObject) {
ActionResult actionResult = null;
// + special class: result
if (resultObject == null) {
Result result = actionRequest.getResult();
if (result != null) {
// read Result, if used; if not, values will be null
Class<? extends ActionResult> actionResultClass = result.getActionResult();
resultObject = result.getResultValue();
if (resultObject == null) {
resultObject = result.value();
}
if (actionResultClass != null) {
actionResult = lookupAndRegisterIfMissing(actionResultClass);
}