public function setMiddleParagraphLayoutId( $layoutParagraphId = null )
    {
        $middleLayout = $this->middleLayoutModel
                             ->findMiddleParagraphLayoutById(
                                 $layoutParagraphId
                             );

        if ( ! empty( $middleLayout ) )
        {
            $controller = $this->getController();

            if ( ! method_exists( $controller, 'plugin' ) )
            {
                throw new Exception\LogicException(
                    'Controller used with paragraphLayout plugin must be pluggable'
                );
            }

            $controller->plugin( 'layout' )
                       ->setMiddleLayout( $middleLayout );
        }

        return $this;
    }