if (bs instanceof org.cougaar.core.plugin.PluginBindingSite) { org.cougaar.core.plugin.PluginBindingSite pbs = (org.cougaar.core.plugin.PluginBindingSite) bs; this.agentId = pbs.getAgentIdentifier(); } else { throw new RuntimeException( "Unable to get AgentId from bindingSite: " + bs); }
this.agentId = getAgentIdentifier();
  public void setBindingSite(BindingSite bs) {    this.serviceBroker = bs.getServiceBroker();    // kludge until a "AgentIdentificationService" is created    if (bs instanceof org.cougaar.core.plugin.PluginBindingSite) {      org.cougaar.core.plugin.PluginBindingSite pbs =        (org.cougaar.core.plugin.PluginBindingSite) bs;      this.agentId = pbs.getAgentIdentifier();    } else {      throw new RuntimeException(          "Unable to get AgentId from bindingSite: " + bs);    }  }