Java API for multiple sub-aggregations

Hi,

I am trying to find out the JAVA API that supports nested sub-aggregations in ES. However, the current API's doesn't provide the clear implementation.

Req: property1 , property 2 .... property n

Using TermBuilder, when i tried adding the subAggregation of subAggregation, its getting added into the TermsBuilder as list of sub-aggregrations rather than nested sub-aggregations.

Thanks,
Saravanan.