hierarchical event allocator for java