On Hamilton's principle in Einstein's theory of gravitation

