/** * Loads some properties to recognize interactor type from different MI terms */ protected void initialiseDeterministicInteractorMaps(){ deterministicInteractorNameMap = new HashMap<String, InteractorCategory>(); deterministicInteractorIdMap = new HashMap<String, InteractorCategory>(); Properties prop = new Properties(); try { //load a properties file prop.load(DefaultInteractorFactory.class.getResourceAsStream("/interactorType.properties")); loadProperties(prop); // load the second property file prop.clear(); prop.load(DefaultInteractorFactory.class.getResourceAsStream("/interactorDatabase.properties")); loadProperties(prop); } catch (IOException ex) { ex.printStackTrace(); } }