DynamicBalancer.java extracted