/**
* @see org.apache.wicket.markup.html.PackageResourceReference#newResource()
*/
protected Resource newResource()
{
PackageResource packageResource = CompressedPackageResource.get(getScope(), getName(),
getLocale(), getStyle());
if (packageResource != null)
{
locale = packageResource.getLocale();
}
else
{
throw new IllegalArgumentException("package resource [scope=" + getScope() + ",name="
+ getName() + ",locale=" + getLocale() + "style=" + getStyle() + "] not found");