public static Configuration cloneConfiguration ( Configuration configuration ) { final Configuration clonedConfiguration = new Configuration ( configuration ) ; if ( clonedConfiguration . getBoolean ( USE_LOCAL_DEFAULT_TMP_DIRS ) ) { clonedConfiguration . removeConfig ( CoreOptions . TMP_DIRS ) ; clonedConfiguration . removeConfig ( USE_LOCAL_DEFAULT_TMP_DIRS ) ; } return clonedConfiguration ; }
Clones the given configuration and resets instance specific config options .