/** * Instantiates a new async command bean. * * @param origCtx the orig ctx * @param cmd the cmd */ protected AsyncCommandBean( NuxeoCommandContext origCtx, INuxeoServiceCommand cmd){ ctx = new NuxeoCommandContext(origCtx.getPortletContext()); ctx.setAuthType(origCtx.getAuthType()); ctx.setAuthProfil(origCtx.getAuthProfil()); command = cmd; }