# Sometimes SOAP::Serializer is invoked statically when there is no context. # So first check to see if a context exists. # TODO - a context needs to be initialized by a constructor? if ($self->context && $self->context->packager->parts) { # TODO - this needs to be called! Calling it though wraps the payload twice! # return $self->context->packager->package($self->xmlize($encoded)); }