*/
public static String alias(Component component)
{
// might be useful in wicket core itself
if (component == null)
throw new SecurityException("Specified component is null");
Page page = null;
try
{
page = component.getPage();
}
catch (IllegalStateException e)
{
throw new SecurityException("Unable to create alias for component: " + component, e);
}
String alias = alias(page.getClass());
String relative = component.getPageRelativePath();
if (relative == null || "".equals(relative))
return alias;