Hi,aureliuh
Please, provide the version of API that you are using. The code you’ve posted is not form the latest API package.
Thank you.