code: public static VelocityContext parseSession(VelocityContext context, javax.servlet.http.HttpSession session) {
  		if (null != session) {
  			final Enumeration<String> sessionAttrs = session.getAttributeNames();
  			if (sessionAttrs != null) {
  				String attrName = null;
  				while (sessionAttrs.hasMoreElements()) {
  					attrName = sessionAttrs.nextElement();
  					context.put(attrName, session.getAttribute(attrName));
  				}
  			}
  		}
  		return context;
  	}
docs: 将Session中的值放入模板上下文
  
  @param context 模板上下文
  @param session Session
  @return VelocityContext