code: @Override
      public ThreadContext deserializeThreadContext(ThreadContextDeserializationInfo info, byte[] bytes) throws ClassNotFoundException, IOException {
          ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes));
          JEEMetadataContextImpl context;
          try {
              context = (JEEMetadataContextImpl) in.readObject();
          } finally {
              in.close();
          }
  
          if (!context.beginDefaultContext) {
              context.metaDataIdentifier = info.getMetadataIdentifier();
              context.jeeMetadataContextProvider = this;
          }
  
          return context;
      }
docs: {@inheritDoc}