extract extractAttributes method