/** * Returns or creates new value proxy for given name. * * @param name Name of the value proxy. * @return Proxy value. */ protected Value<?> getValueProxy(String name) { String parent = parentName; while (parent != null) { String testName = null; if (parent.isEmpty()) { testName = name; parent = null; } else { testName = parent + "." + name; parent = stripOffLastReference(parent); } if (proxyValues.containsKey(testName)) { return proxyValues.get(testName); } } throw new InvalidReferenceNameException(name); }
/** * Returns or creates new value proxy for given name. * * @param name Name of the value proxy. * @return Proxy value. */ protected Value<?> getValueProxy(String name) { String parent = parentName; while (parent != null) { String testName = null; if (parent.isEmpty()) { testName = name; parent = null; } else { testName = parent + "." + name; parent = stripOffLastReference(parent); } if (proxyValues.containsKey(testName)) { return proxyValues.get(testName); } } throw new InvalidReferenceNameException(name); }