Ironically, now with modern Java you can that much easier than the approach done in the Java variant back in 1997.