code: public static ThreadContextDescriptor deserialize(byte[] bytes, Map<String, String> execProps) throws ClassNotFoundException, IOException {
          return new ThreadContextDescriptorImpl(execProps, bytes);
      }
docs: Deserializes a thread context descriptor.
  
  @param bytes bytes obtained from the ThreadContextDescriptor.serialize method.
  @param execProps execution properties.
  @return a thread context descriptor.
  @throws ClassNotFoundException if unable to find a class during deserialization.
  @throws IOException if an error occurs during deserialization.