[FIX] XQuery, Java Modules: return correct return type