if (getFlag(FLAG_OUTPUT_MARKUP_ID))
{
tag.putInternal(MARKUP_ID_ATTR_NAME, getMarkupId());
}
DebugSettings debugSettings = getApplication().getDebugSettings();
String componentPathAttributeName = debugSettings.getComponentPathAttributeName();
if (Strings.isEmpty(componentPathAttributeName) == false)
{
String path = getPageRelativePath();
path = path.replace("_", "__");
path = path.replace(':', '_');
tag.put(componentPathAttributeName, path);
}
else if (debugSettings.isOutputComponentPath())
{
String path = getPageRelativePath();
path = path.replace("_", "__");
path = path.replace(':', '_');
tag.put("wicketpath", path);