private void loadAllProperties() throws IOException { // First load all the properties for (FlowProps fprops : flow.getFlowProps()) { String source = fprops.getSource(); File propsPath = new File(execDir, source); Props props = new Props(null, propsPath); sharedProps.put(source, props); } // Resolve parents for (FlowProps fprops : flow.getFlowProps()) { if (fprops.getInheritedSource() != null) { String source = fprops.getSource(); String inherit = fprops.getInheritedSource(); Props props = sharedProps.get(source); Props inherits = sharedProps.get(inherit); props.setParent(inherits); } else { String source = fprops.getSource(); Props props = sharedProps.get(source); props.setParent(globalProps); } } }