public static void useThreadLocalSettings(boolean useThreadSettings){
  if (useThreadSettings) {
    LOCAL_SETTINGS.set(GLOBAL_SETTINGS.copy());
  }
 else {
    LOCAL_SETTINGS.remove();
  }
}

public static void useThreadLocalSettings ( boolean useThreadSettings ) { if ( useThreadSettings ) { LOCAL_SETTINGS . set ( GLOBAL_SETTINGS . copy ( ) ) ; } else { LOCAL_SETTINGS . remove ( ) ; } }
use thread local settings for the current thread instead of the global ones if the parameter is set to true , else use the shared global settings .
