code: public void registerShanksAgent(ShanksAgent agent)
              throws ShanksException {
          if (!this.agents.containsKey(agent.getID())) {
              this.agents.put(agent.getID(), agent);
          } else {
              throw new DuplicatedAgentIDException(agent.getID());
          }
      }
docs: This method adds and registers the ShanksAgent
  
  @param agent
  The ShanksAgent
  @throws ShanksException