review doc::getTitle and doc::getCustomTitle