String NAMED_LOCATION_PREFIX = "brooklyn.location.named."; ConfigMap namedLocationProps = mgmt.getConfig().submap(ConfigPredicates.startingWith(NAMED_LOCATION_PREFIX)); for (String k: namedLocationProps.asMapWithStringKeys().keySet()) { String name = k.substring(NAMED_LOCATION_PREFIX.length()); String spec = (String) namedLocationProps.asMapWithStringKeys().get(k); Map<String, Object> config = ConfigUtils.filterForPrefixAndStrip(namedLocationProps.asMapWithStringKeys(), k+"."); definedLocations.put(id, new BasicLocationDefinition(id, name, spec, config)); count++;