add javadocs
show generic type is maintained for getQueryBuilder()