*Does the work to start Java Web Start services for an app client.
*@param the appclientOrigin for which to begin JWS services
*/
private void startJWSServices(AppclientContentOrigin origin) {
WebContainer container = WebContainer.getInstance();
if (container != null) { // Make sure that webcontainer is up.
/*
*Ask the web container to route requests for the app client's context-root to
*our ad hoc servlet using the appropriate target path for this origin.
*/
String targetPathString = origin.getTargetPath();
WebPath targetPath = new WebPath(targetPathString);
JWSAdHocServletInfo info = new JWSAdHocServletInfo(targetPath.path(), targetPath.contextRoot());
String virtualContextRoot = origin.getVirtualPath();
WebPath virtualPath = new WebPath(virtualContextRoot);
_logger.info("Registering ad hoc servlet: " + virtualPath);
container.registerAdHocPath(virtualPath.path(),
virtualPath.contextRoot(),
origin.getTopLevelRegistrationName(),
info);
origin.adhocPathRegistered();
}