public function convert( $object )
    {
        if ( $object instanceof eZContentObject )
        {
            return $this->repository->getContentService()->loadContent( $object->attribute( 'id' ) );
        }
        else if ( $object instanceof eZContentObjectTreeNode )
        {
            return $this->repository->getLocationService()->loadLocation( $object->attribute( 'node_id' ) );
        }

        return $object;
    }