map.put( taskid, task );
{ BaseTaskBean bean = new BaseTaskBean( taskid, task ); map.put( taskid, bean ); }
	public static void addTask( HttpServletRequest request, IEngineTask task )	{		if ( request == null || task == null )			return;		// get task id		BaseAttributeBean attrBean = (BaseAttributeBean) request				.getAttribute( IBirtConstants.ATTRIBUTE_BEAN );		if ( attrBean == null )			return;		String taskid = attrBean.getTaskId( );		// get task map		HttpSession session = request.getSession( true );		Map map = (Map) session.getAttribute( IBirtConstants.TASK_MAP );		if ( map == null )		{			map = new HashMap( );			session.setAttribute( IBirtConstants.TASK_MAP, map );		}		// add task		synchronized ( map )		{			if ( taskid != null )				map.put( taskid, task );		}	}