private function validateAttributeStatement(AttributeStatement $statement)
 {
     if (false == $statement->getAllAttributes()) {
         throw new LightSamlValidationException('AttributeStatement MUST contain at least one Attribute or EncryptedAttribute');
     }
     foreach ($statement->getAllAttributes() as $attribute) {
         $this->validateAttribute($attribute);
     }
 }