public function asClass(
        $soapResult,
        array $resultClassMap = array(),
        $resultClassNamespace = ''
    ) {
        if (!is_object($soapResult)) {
            throw new InvalidParameterException('Soap Result is not an object');
        }

        $objVarsNames = array_keys(get_object_vars($soapResult));
        $rootClassName = reset($objVarsNames);
        $soapResultObj = $this->mapObject(
            $soapResult->$rootClassName,
            $rootClassName,
            $resultClassMap,
            $resultClassNamespace
        );

        return $soapResultObj;
    }