public void register(CyclicBarrier barrier) {
getController().register(barrier, 1);
}
public void beforeAwait(CyclicBarrier barrier) {
JArmusController controller = getController();
int phase = controller.advance(barrier);
controller.beforeAwait(barrier, phase);
}