code: public int getAccessor(String name) {
      if (name == null)
        name = "";
      StringTokenizer path = new StringTokenizer(name, "/");
      JMFType pos = getEffectiveType(jsTypeTree);
      while (pos != null && path.hasMoreTokens())
        pos = findChild(getEffectiveType(pos), path.nextToken());
      if (pos instanceof JSVariant && ((JSVariant)pos).getBoxed() != null)
        return ((JSVariant)pos).getBoxed().getAccessor("");
      else if (pos instanceof JSField)
        return ((JSField)pos).getAccessor();
      else
        return -1;
    }
docs: Resolve a symbolic name to an accessor
  
  @param name the symbolic name to resolve.  We use a simple, vaguely XPath-like,
  syntax:
  
  <xmp>
  Name ::= [ Segment ] ( '/' Segment )*
  Segment ::= SimpleName | '[' NonNegInt ']'
  SimpleName ::= ... anything acceptable as XML NCName ...
  </xmp>
  
  <p>The starting context for resolution is the top JSType of the schema.  So, the
  empty name (for which <b>null</b> is a permitted alias) refers to that node.  Each
  segment steps down to the child with that name or the child with that sibling
  position.  Any JSRepeateds encountered in this process are skipped over silently,
  whether named or not, so names assigned to JSRepeateds (as opposed to their itemTypes)
  are "documentation only" and never part of any pathname.
  
  @return the accessor of the referred to node or -1 if the referred to node does not
  exist or is not a JSField