The CC V3 API now supports filtering of builds based on package IDs (see [here](https://v3-apidocs.cloudfoundry.org/version/3.75.0/index.html#list-builds)). The CF Java client should also support this.