Lionel Messi has praised Barcelona's academy system and says that he is grateful for the opportunities the club have given him.