public void restoreKey(String key){
  if (!key.equalsIgnoreCase("test_mode_opened")) {
    String originalKey=key.substring(keyTestMode.length());
    Object value=get(key);
    put(originalKey,value);
    clear(key);
  }
}

public void restoreKey ( String key ) { if ( ! key . equalsIgnoreCase ( "test_mode_opened" ) ) { String originalKey = key . substring ( keyTestMode . length ( ) ) ; Object value = get ( key ) ; put ( originalKey , value ) ; clear ( key ) ; } }
restore the original value for the key after it has been changed in test mode .
