Metrics filter java