public function getJsOpenParamValue($fieldKey, $property, $type = 'tt_content')
    {
        $storage = $this->storageRepository->load();
        $value = null;
        $windowOpenParameters = $storage[$type]['tca'][$fieldKey]['config']['fieldControl']['linkPopup']['options']['windowOpenParameters'];
        if ($windowOpenParameters != '') {
            $properties = explode(',', $windowOpenParameters);
            foreach ($properties as $setProperty) {
                $keyPair = explode('=', $setProperty);
                if ($property == $keyPair[0]) {
                    $value = $keyPair[1];
                    break;
                }
            }
        }

        // if nothing was found, set the default values
        if ($value == null) {
            switch ($property) {
                case 'height':
                    $value = 300;
                    break;
                case 'width':
                    $value = 500;
                    break;
                case 'status':
                    $value = 0;
                    break;
                case 'menubar':
                    $value = 0;
                    break;
                case 'scrollbars':
                    $value = 1;
                    break;
                default:
                    $value = null;
            }
        }
        return $value;
    }