Javadoc is not precise enough and variable "pageId" for the id of a page or a content is very confusing. So when looking at this method, we can think the code is bugged