@Override public Status saveConfiguration() { return configurationService.persistConfiguration( new ArrayList<ConfigurationObject>(portDB.values()), FILE_NAME); }
private void loadConfiguration() { for (ConfigurationObject conf : configurationService.retrieveConfiguration(this, FILE_NAME)) { NeutronPort nn = (NeutronPort) conf; portDB.put(nn.getID(), nn); } }