Emulation objects for use in java