Thank you. I have finally understood everything we are discussing here. I just didn't know that there is a mechanism to access java array from the native code directly (I don't know much about avian design)