class_docstr: A generic context for sending requests to a java program using protobufs in a subprocess
class_docstr_tok: ["A","generic","context","for","sending","requests","to","a","java","program","using","protobufs","in","a","subprocess"]
code: def __init__(
      self, classpath, build_response, java_main, extra_args=None
  ):
      self.classpath = resolve_classpath(classpath)
      self.build_response = build_response
      self.java_main = java_main
  
      if extra_args is None:
          extra_args = []
      self.extra_args = extra_args
      self.pipe = None
  
imports: from collections import deque
  import subprocess
  from stanza.models.common.utils import misc_to_space_after
  from stanza.models.constituency.parse_tree import Tree
  from stanza.protobuf import DependencyGraph, FlattenedParseTree
  from stanza.server.client import resolve_classpath
label_desc: Use image node_id 1 to create a new JavaProtobufContext object from inherited base classes: object with example: obj = JavaProtobufContext(classpath, build_response, java_main, extra_args)