resourceInvocation.setInstanceContext(new AbstractInstanceContext(portlet.getContext().getId()));
resourceInvocation.setUserContext(new AbstractUserContext(req));
resourceInvocation.setWindowContext(new AbstractWindowContext(windowId));
resourceInvocation.setPortalContext(PORTAL_CONTEXT);
resourceInvocation.setSecurityContext(new AbstractSecurityContext(req));
resourceInvocation.setRequestContext(new AbstractRequestContext(req));
resourceInvocation.setTarget(portlet.getContext());
//
return invoke((PortletInvocation)resourceInvocation);
}