public NamespaceBinding get(String session, String name)
throws RuntimeException, InterruptedException
{
Map<String, Object> data = new HashMap<String, Object>(1);
data.put("name", name);
ServerChannel channel = getChannel(session);
if (null == channel) {
System.err.println("channel not found for session " + session);
return null;
}
channel.publish(this.localSession, data, null);
NamespaceBinding binding = getHandoff(session).take(); // blocks
if (!binding.getName().equals(name)) {
throw new RuntimeException("Namespace get, name mismatch. Received " +
binding.getName() + ", expected " + name);
}