Why don't you just call runtimeProperties.putAll(cache);