java port + mapr v2 with dynamic policy and metrics collection