protected static void buildTree(EndpointPart parent,String[] parts,int index,String endpointType){
  String name=parts[index];
  String qualifier=null;
  if (index == parts.length - 1) {
    qualifier=EndpointUtil.decodeEndpointOperation(parts[index],false);
    name=EndpointUtil.decodeEndpointURI(parts[index]);
  }
  EndpointPart child=parent.addChild(name);
  if (index < parts.length - 1) {
    buildTree(child,parts,index + 1,endpointType);
  }
 else {
    if (qualifier != null) {
      child=child.addChild(qualifier);
      child.setQualifier(true);
    }
    child.setEndpointType(endpointType);
  }
}

protected static void buildTree ( EndpointPart parent , String [ ] parts , int index , String endpointType ) { String name = parts [ index ] ; String qualifier = null ; if ( index == parts . length - 1 ) { qualifier = EndpointUtil . decodeEndpointOperation ( parts [ index ] , false ) ; name = EndpointUtil . decodeEndpointURI ( parts [ index ] ) ; } EndpointPart child = parent . addChild ( name ) ; if ( index < parts . length - 1 ) { buildTree ( child , parts , index + 1 , endpointType ) ; } else { if ( qualifier != null ) { child = child . addChild ( qualifier ) ; child . setQualifier ( true ) ; } child . setEndpointType ( endpointType ) ; } }
this method builds a tree .
