* @return A BookmarkablePageLink<?> to handle the href
*/
private Component resolveAutomaticLink(final PathInfo pathInfo, final String id,
final ComponentTag tag)
{
final MarkupContainer container = pathInfo.getContainer();
final Page page = container.getPage();
// Make the id (page-)unique
final String autoId = id + Integer.toString(page.getAutoIndex());
// get the tag name, which is something like 'a' or 'script'