In reply to soloist_huaxin:
You are probably missing something in your example post. Your example compile fine for me once I add the import and include statements.
And what do you mean by a wrapper class? What you have shown is a simple extended class.