/**
   * Create a JmsRouter.
   *
   * @param name the Name for the JmsRouter.
   * @param ip The IP for the JmsRouter.
   */
  private void createJmsRouter(String name, String ip) throws Throwable {
    // create
    JmsRouter router = new JmsRouter();
    router.setIpAddress(ip);
    router.setName(name);
    router = (JmsRouter) JmsRouterEntityHandler.getInstance().createEntity(router);

    // add uid to routers
    _ctx.getConnectionSetupResult().getAvailableRouterUIDs().add(router.getKey());
  }
 /** Delete all JmsRouters in the database. */
 private void deleteJmsRouters() throws Throwable {
   JmsRouterEntityHandler.getInstance().removeByFilter(null);
 }