Workaround for bug #14104 - there is no way to generate java interface, so do it manually and invoke it by reflection.