class FinalTask implements ITask {

    @Override
    public void execute()
            throws TaskExecutionException {
        try {
            IObject context = (IObject) this.env.getValue(this.contextFieldName);
            if (null == context) {
                return;
            }
            List<IAction> actions = (List<IAction>) context.getValue(this.finalActionsFieldName);
            if (null == actions) {
                return;
            }
            for (IAction action : actions) {
                try {
                    action.execute(this.env);
                } catch (ActionExecuteException e) {
                    e.printStackTrace();
                }
            }

        } catch (InvalidArgumentException | ReadValueException e) {
            throw new TaskExecutionException("Could not execute final task.");
        }
    }

    public  FinalTask(final IObject environment);

}