boolean processLaunchRequest(Request request) throws IOException {
if(request.getRequestData()==null)
return true;
ByteArrayReader msg = new ByteArrayReader(request.getRequestData());
// If this was a server side the no further processing is required
boolean serverSide = msg.readBoolean();
if(serverSide) {
// #ifdef DEBUG
log.info("Server side launch. No further processing required.");
// #endif
return false;
}
// Get the application name
String name = msg.readString();
msg.readInt(); // shortcut id
String launchId = msg.readString();
String descriptor = msg.readString();
Hashtable parameters = new Hashtable();
parameters.put("launchId", launchId);
parameters.put("ticket", launchId);
Application app = launchApplication(name, descriptor, parameters);