The code has been created a long time ago. In the mean time the runtime & binding support has changed a small bit. The code should be updated to the latest runtime and use the latest binding features.