public static function create($parsed)
    {
        $result = new self();

        $result->_id = Utilities::tryGetValue(
            $parsed,
            Resources::XTAG_ID
        );
        $result->_status = Utilities::tryGetValue(
            $parsed,
            Resources::XTAG_STATUS
        );
        $result->_httpStatusCode = Utilities::tryGetValue(
            $parsed,
            Resources::XTAG_HTTP_STATUS_CODE
        );
        $error = Utilities::tryGetValue(
            $parsed,
            Resources::XTAG_ERROR
        );

        if (!empty($error)) {
            $code = Utilities::tryGetValue($error, Resources::XTAG_CODE);
            $message = Utilities::tryGetValue($error, Resources::XTAG_MESSAGE);

            $result->_error = new ServiceException($code, $message);
        }

        return $result;
    }