Added the arraylist restPieces to commandhandler. Use this to get the
headers.