*/
@Override
public void storePortletEntity(IPortletEntity portletEntity) {
Validate.notNull(portletEntity, "portletEntity can not be null");
final IPortletEntityId portletEntityId = portletEntity.getPortletEntityId();
final IPortletPreferences portletPreferences = portletEntity.getPortletPreferences();
final List<IPortletPreference> preferences = portletPreferences.getPortletPreferences();
if (portletEntity instanceof PersistentPortletEntityWrapper) {
//Unwrap the persistent entity