public function getDefaultParentNodeId( eZContentClass $class )
    {
        $parentNodes = array();
        $parentMainNode = null;
        $upload = new eZContentUpload();
        $upload->detectLocations(
            $class->attribute( 'identifier' ), $class, 'auto',
            $parentNodes, $parentMainNode
        );
        return $parentMainNode;
    }