static NameComponent[] nameToCosName(Name name) throws InvalidNameException {
  int len=name.size();
  if (len == 0) {
    return new NameComponent[0];
  }
  NameComponent[] answer=new NameComponent[len];
  for (int i=0; i < len; i++) {
    answer[i]=parseComponent(name.get(i));
  }
  return answer;
}

static NameComponent [ ] nameToCosName ( Name name ) throws InvalidNameException { int len = name . size ( ) ; if ( len == 0 ) { return new NameComponent [ 0 ] ; } NameComponent [ ] answer = new NameComponent [ len ] ; for ( int i = 0 ; i < len ; i ++ ) { answer [ i ] = parseComponent ( name . get ( i ) ) ; } return answer ; }
creates a namecomponent [ ] from a name structure . used by cnctx to convert the input name arg into a namecomponent [ ] .
