protected function getValidItems()
    {
        $validItems = eZFlowPool::validItems( $this->id() );
        $merged = $this->merge( $validItems );
        usort( $merged, array( $this, 'sortItemsByPriority' ) );

        return $merged;
    }