class UpdateViewHook implements GraphHook {

    protected final View.Builder mergeView(final OperationView operationView, final View viewToMerge) {
        final View.Builder viewBuilder = new View.Builder();

        if (!(operationView.getView() instanceof NamedView)) {
            viewBuilder.merge(operationView.getView());
        }

        if (null != viewToMerge) {
            viewBuilder.merge(viewToMerge.clone());
        }

        return viewBuilder;
    }

}