public boolean processRequest(Request request, MultiplexedConnection connection) {
AgentTunnel agent = (AgentTunnel) connection;
if (request.getRequestName().equals(SETUP_AND_LAUNCH_TUNNEL) && request.getRequestData()!=null) {
try {
ByteArrayReader reader = new ByteArrayReader(request.getRequestData());
int id = (int)reader.readInt();
Tunnel resource = (Tunnel)TunnelPlugin.SSL_TUNNEL_RESOURCE_TYPE.getResourceById(id);
if (resource == null) {
throw new Exception("No resource with ID " + id);
}
Policy policy = LaunchSessionManager.getLaunchRequestPolicy(null, agent.getSession(), resource);