replay(schemaFactory, serviceSchema, componentSchema);
HashSet<String> serviceProperties = new HashSet<String>();
serviceProperties.add("foo/bar");
QueryInfo rootQuery = new QueryInfo(new ServiceResourceDefinition(), serviceProperties);
TreeNode<QueryInfo> queryTree = new TreeNodeImpl<QueryInfo>(null, rootQuery, "Service");
HashSet<String> componentProperties = new HashSet<String>();
componentProperties.add("goo/car");
queryTree.addChild(new QueryInfo(new ComponentResourceDefinition(), componentProperties), "Component");
MinimalRenderer renderer = new MinimalRenderer();
renderer.init(schemaFactory);
TreeNode<Set<String>> propertyTree = renderer.finalizeProperties(queryTree, false);