private void compactConfiguration(Configuration config) { if (config == null) { return; } if (config.getProperties() == null) { return; } for (Property prop : config.getProperties()) { if (prop.getName() != null) { prop.setName(prop.getName().intern()); } } config.resize(); }