private InputStream getPropertyStream(String processorName) throws FileNotFoundException { File[] listFiles = getXmlRootFolder().listFiles(); if (listFiles != null) { for (File child : listFiles) { if (child.getName().equals(processorName + PROPERTIES_EXT)) { return new FileInputStream(child); } } } throw new FileNotFoundException(); }