try {
model = action.execute(internalBuildController);
} catch (BuildCancelledException e) {
failure = new InternalBuildCancelledException(e);
} catch (RuntimeException e) {
failure = new InternalBuildActionFailureException(e);
}
if (failure != null) {
return new BuildActionResult(null, payloadSerializer.serialize(failure));
}