Uh, yeah, its pretty well known that Wilhelm II ditched Bismark and his cautious foreign policy in pursuit of a reckless attempt to emulate the Royal Navy (Britain was very cagey about its Naval Supremacy, otherwise it would have been a natural German ally). He also gave Austria carte blanche to do what he liked to Serbia, when an otherwise more moderate response might have been attempted.
It was natural for any great power to pursue parity on the high seas. In the handling of the Sarajevo crisis Germany was in the right, or at least perceived itself to be in the right. The Keiser, of course, shares the responsibility along with other great powers of the time, but there was nothing war-mongering or crazy about seeking justice to be rendered to what we today call “terrorists”.