static String interpolate(ConfiguredObject<?> object, String value)
{
if(object == null)
{
return value;
}
else
{
Map<String, String> inheritedContext = new HashMap<String, String>();
generateInheritedContext(object.getModel(), object, inheritedContext);
return Strings.expand(value, false,
JSON_SUBSTITUTION_RESOLVER,
getOwnAttributeResolver(object),
getAncestorAttributeResolver(object),
new Strings.MapResolver(inheritedContext),
Strings.JAVA_SYS_PROPS_RESOLVER,
Strings.ENV_VARS_RESOLVER,
object.getModel().getTypeRegistry().getDefaultContextResolver());
}
}