protected String getModelLocation(Properties aProperties) throws IOException { Properties props = aProperties; if (props == null) { props = getAggregatedProperties(); } try { return pph.replacePlaceholders(props.getProperty(LOCATION), props); } catch (IllegalArgumentException e) { throw new IllegalStateException("Unable to resolve the model location [" + props.getProperty(LOCATION) + "]: " + e.getMessage() + ". Possibly there is " + "no default model configured for the specified language [" + props.getProperty(LANGUAGE) + "] or the language is set incorrectly."); } }
Properties props = getAggregatedProperties(); String modelLocation = getModelLocation(props); boolean modelLocationChanged = !StringUtils.equals(modelLocation, lastModelLocation);