Updated example with newest API. Added annotations to be used by java2sdg