public static function createNewDiscussion(SPList $list, $title)
    {
        $discussionPayload = array(
            "Title" => $title,
            "FileSystemObjectType" => 1
        );
        $item = $list->addItem($discussionPayload);
        $item->getContext()->executeQuery();
        //fix discussion folder name
        $item->setProperty("FileLeafRef",$title);
        $item->update();
        $item->getContext()->executeQuery();
        return $item;
    }