public static TabState restoreTabState(File stateFolder,int id){
  boolean encrypted=false;
  File file=getTabStateFile(stateFolder,id,encrypted);
  if (!file.exists()) {
    encrypted=true;
    file=getTabStateFile(stateFolder,id,encrypted);
  }
  if (!file.exists())   return null;
  return restoreTabState(file,encrypted);
}

public static TabState restoreTabState ( File stateFolder , int id ) { boolean encrypted = false ; File file = getTabStateFile ( stateFolder , id , encrypted ) ; if ( ! file . exists ( ) ) { encrypted = true ; file = getTabStateFile ( stateFolder , id , encrypted ) ; } if ( ! file . exists ( ) ) return null ; return restoreTabState ( file , encrypted ) ; }
restore a tabstate file for a particular tab . checks if the tab exists as a regular tab before searching for an encrypted version .
