/** * Flattens the execution result to the actual outcome of the execution. If an exception occured, it is throw, * if it returned any result - including null - it is returned. * @return * the actual return value of the operation * @throws Exception * if the execution produced an exception, it is thrown */ public RESULTTYPE flatten() throws Exception { //NOSONAR if (!wasSuccess()) { throw this.exception.get(); } return get(); }