Create EventBarrier.java