Martin Kaymer says he will take inspiration from Germany's World Cup win as the world number 6 prepares for the Open.