generator stuff js/java interop