if (portletUniqueName != null)
{
Fragment fragment = new PortletAggregatorFragmentImpl(windowId);
fragment.setType(Fragment.PORTLET);
fragment.setName(portletUniqueName);
window = createPortletWindow(new ContentFragmentImpl(fragment, new HashMap(), true));
if (register && !registered && window.isValid())
{
if (session == null)
{