Note: The auto-generated code is for reference purposes and orientation. A direct copy&paste will not work on its own. Please make sure to review the sample and adapt to your own application code.