public static ResourceExistsException alreadyExists(String message, PageId id) {
return new ResourceExistsException(message + ". Page " + id.getPageName() + " already exists for site " + id.getSiteId());
}
public static ResourceExistsException alreadyExists(String message, SiteId id, NodePath nodePath) {
return new ResourceExistsException(message + ". Node " + nodePath + " already exists for site " + id);
}