docs: protected Long getPersistedSessionId(String location, String identifier) {
          File sessionIdStore = new File(location + File.separator + identifier+ "-jbpmSessionId.ser");
          if (sessionIdStore.exists()) {
          	Long knownSessionId = null; 
              FileInputStream fis = null;
              ObjectInputStream in = null;
              try {
                  fis = new FileInputStream(sessionIdStore);
                  in = new ObjectInputStream(fis);
                  
              	Object tmp = in.readObject();
              	if (tmp instanceof Integer) {
              		tmp = new Long((Integer) tmp);
              	}
          		knownSessionId = (Long) tmp;
                  
                  return knownSessionId.longValue();
                  
              } catch (Exception e) {
                  return 0L;
              } finally {
                  if (in != null) {
                      try {
                          in.close();
                      } catch (IOException e) {
                      }
                  }
                  if (fis != null) {
                      try {
                          fis.close();
                      } catch (IOException e) {
                      }
                  }
   
              }
              
          } else {
              return 0L;
          }
      }