invoke java class to invoke by value