public void init() throws Exception {
    jmxService.register(getObjectName(), this);

    DirectoryConfig directoryConfig = getDirectoryConfig();

    for (String entryName : directoryConfig.getEntryNames()) {
      createEntryService(entryName);
    }
  }
  public void destroy() throws Exception {

    DirectoryConfig directoryConfig = getDirectoryConfig();

    for (String entryName : directoryConfig.getEntryNames()) {
      removeEntryService(entryName);
    }

    jmxService.unregister(getObjectName());
  }
 public Collection<String> getEntryNames() throws Exception {
   Collection<String> list = new ArrayList<String>();
   DirectoryConfig directoryConfig = getDirectoryConfig();
   list.addAll(directoryConfig.getEntryNames());
   return list;
 }