public Memory getConfigValue(String name, Memory defaultValue) {
        Memory result = null;
        if (scope.configuration == null || (result = configuration.get(name)) != null) {
            if (result == null) result = configuration.get(name);
            if (result == null)
                return defaultValue;

            return result;
        }

        result = scope.configuration.get(name);
        return result == null ? defaultValue : result;
    }
Remove all method which does not destruct

@throws Throwable
jphp-runtime/src/php/runtime/env/Environment.java