[DF-5228] Java Method removed and replaced by Function. Teplates for methods with 1-6 parameters. + return type. Unit test for Jni. FileListAndroid uses new mechanism.