@Override
protected synchronized String createStateContext(String portletId, PropertyMap propertyMap)
{
String id = Integer.toString(counter++);
PortletStateContext state = new PortletStateContextImpl(id, portletId, new SimplePropertyMap(propertyMap));
store.put(id, state);
return id;
}