private void addPropertyValues(Map<ConfigurationProperty, List<String>> propertyMap, StringTokenizer st, ConfigurationProperty property) throws InterpreterPropertyException { List<String> l = getOrCreatePropertyList(propertyMap, property); if ( ! st.hasMoreTokens() ) { if (isBooleanSwitchProperty(property)) { l.add("true"); } else { throw new InterpreterPropertyException( String.format("No value was given for switch -%s (-%s), and Chorus cannot provide a default", property.getSwitchShortName(), property.getSwitchName() ) ); } } else { while(st.hasMoreTokens()) { l.add(st.nextToken()); } } }