@Override
@SuppressWarnings({ "unchecked", "deprecation" })
public <T> T getAdapter( Class<T> adapter ) {
T result;
if( adapter == WidgetLifeCycleAdapter.class || adapter == org.eclipse.rap.rwt.lifecycle.WidgetLifeCycleAdapter.class ) {
result = ( T )new VideoLifeCycleAdapter();
} else if( adapter == PlaybackAdapter.class ) {
result = ( T )new PlaybackAdapter();
} else {
result = super.getAdapter( adapter );
}