While trying to get PCD object details such as workset details, when performing a lookup() call for the workset item, such as in this example code: Accessing PCD Contents like iViews, Pages, Worksets, Roles and Their Properties my code doesn't return an IPcdContext object but an object of class com.sapportals.portal.pcd.pcm.roles.PortalWorkset which I can't find documentation on, hence resulting in the ClassCastException.
Any help would be much appreciated!