But this means extra parsing of the document and is not elegant.
但是这将意味着对此文档要进行额外的解析,而且也不优雅。
It doesn't take into consideration session expiration, and it's not particularly elegant, but it works.
这个解决方案没有考虑到会话过期,而且不太优雅,但是能够起作用。
You could fall back on type checking inside the add method, but that is not elegant and inflexible.
您可以依赖add方法内部的类型检查,但这并不优雅而且不固定。
应用推荐