patch Token.template and TokenMgrError to add missing @Override annotations (causes javadoc warnings)