code: private ResourceReference getResourceReference()
  	{
  		final Map<String, Object> map = new HashMap<>();
  		map.put("url", WicketUrlExtensions.getUrlAsString(pageClass));
  		final ResourceReference resourceReference = new TextTemplateResourceReference(pageClass,
  			this.filename, "text/javascript", Model.ofMap(map));
  		return resourceReference;
  	}
docs: Gets the resource reference.
  
  @return the resource reference