private void removeNamedBean(String typeName, String name) {
    WriteableBeanDatabase wbd = hub.getWriteableDatabaseCopy();

    WriteableType wt = wbd.findOrAddWriteableType(typeName);

    wt.removeInstance(name);

    wbd.commit();
  }
  private void addNamedBean(String typeName, String name) {
    WriteableBeanDatabase wbd = hub.getWriteableDatabaseCopy();

    WriteableType wt = wbd.findOrAddWriteableType(typeName);

    HashMap<String, Object> namedBean = new HashMap<String, Object>();
    namedBean.put(NAME_KEY, name);

    wt.addInstance(name, namedBean);

    wbd.commit();
  }
  private void addConfiguredValueBean(String typeName, long value) {
    WriteableBeanDatabase wbd = hub.getWriteableDatabaseCopy();

    WriteableType wt = wbd.findOrAddWriteableType(typeName);

    HashMap<String, Object> namedBean = new HashMap<String, Object>();
    namedBean.put(CONFIGURED_VALUE_KEY, new Long(value));

    wt.addInstance(DEFAULT_KEY, namedBean);

    wbd.commit();
  }