Api for calling ECL queries from java code