LRDOCS-732 Fix links from DTD to Javadocs
LPS-39901 Revert changes of LPS-30188 and rollback of LPS-34920
LPS-40068 Improve usage of VelocityContext.
LPS-40086 Move common logic to AbstractTemplate, no changes.
LPS-40086 Add checking for key.