For anyone else reading this - use the @Factory method.
@Unwrap has problems with ClassCastException's since the unwrapped object is a
different class to the component.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985243#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...