A great 51st minute set-piece from the training ground opened the hosts up with Xavi Hernandez lining up a shot before passing to Messi , who had spun off the wall , and the Argentine hammered a shot into the roof of the net .