Barcelona midfielder is sentenced by the German court