A representation-theoretical approach to higher-dimensional Lie--Hamilton systems: The symplectic Lie algebra sp (4, R) | Synapse