code: @Override
    public void _Network_Peers_addPeer(String name, boolean attemptConnect, int rating, String realm) throws MBeanException {
      try {
        NetworkImpl n = (NetworkImpl) stack.unwrap(Network.class);
        /*Peer p =*/ n.addPeer(name, realm, attemptConnect);
      }
      catch (IllegalArgumentException e) {
        logger.warn(e.getMessage());
      }
      catch (InternalException e) {
        throw new MBeanException(e, "Failed to add peer with name '" + name + "'");
      }
    }
docs: /*
  (non-Javadoc)
  @see org.mobicents.diameter.stack.DiameterStackMultiplexerMBean#_Network_Peers_addPeer(java.lang.String, boolean, int, String)