According the spec, where is `clear` function? And attribute `type` and `serviceIDs` are missing in purpose?