public function init($sourceId, $resourceId, $resource)
    {
        // Setting unique source and resource ids
        $this->resourceId = $resourceId;
        $this->sourceId   = $sourceId;

        // Setting message object
        if (!$resource instanceof ZendMessage) {
            throw new BadResourceConfigurationException(
                sprintf(
                    'Remote resource handler is expected to be an instance of \'\Zend\Mail\Storage\Message\', but got \'%s\'.',
                    get_class($resource)
                )
            );
        }
        $this->message = $resource;
    }