org.gatein.pc.api.PortletContext pc = org.gatein.pc.api.PortletContext.createPortletContext(applicationId, containerId);
// and more specifically, their lifecycle eventds
if (managedObjectEvent instanceof ManagedObjectLifeCycleEvent)
{
ManagedObjectLifeCycleEvent lifeCycleEvent = (ManagedObjectLifeCycleEvent)managedObjectEvent;
LifeCycleStatus status = lifeCycleEvent.getStatus();
if (LifeCycleStatus.STARTED.equals(status))
{
// if the portlet started, add it to the service description
final PortletInfo info = portletContainer.getInfo();
// but only if it's remotable