// Register the widget's ComponentServlet under the same URI as the widget
String widgetArtifact = implementation.getLocation();
widgetArtifact = widgetArtifact.substring(0, widgetArtifact.lastIndexOf('.'));
widgetArtifact = widgetArtifact.substring(widgetArtifact.lastIndexOf('/') + 1);
servletMapping = widgetURI + "/" + widgetArtifact + ".js";
WidgetComponentServlet widgetComponentServlet = new WidgetComponentServlet(component, servletMapping);
servletHost.addServletMapping(servletMapping, widgetComponentServlet);
}