final NodeTermQuery owner = new NodeTermQuery(new Term("", "DeviceOwner"));
owner.setDatatype("json:field");
// Use the query builder to create twig query using the JSON query syntax.
final QueryBuilder builder = new QueryBuilder();
final TwigQuery twq = builder.newTwig(owner.toString("json"))
.with(
builder.newTwig(website.toString("json"))
.with(builder.newNode(uri.toString("json"))),
2);
query.setQuery(twq.toString());
return query;
}