String resource = env.getGlobalVar("_SERVER").get(PHP_SELF).toString();
if (resource.indexOf('/') == 0)
resource = resource.substring(1);
NullActor stream = new NullActor(address, broker);
connection = new SimpleActorSender(stream, broker, address, resource);
env.addCleanup(new BamConnectionResource(connection));
env.setSpecialValue("_quercus_bam_connection", connection);
}