This functionality is supported only if you are using the Classic Agent.
You won't be able to call nested methods when any of the intermediate return objects are not 4Test-compatible. To work around this problem, add the method invokeMethods by hand to your test script. This method allows you to call nested methods inside Java.