rewrite system event page from perl to java