public static function getSettings($package,$setting = null){

    	$package_ = preg_replace('/\/|\\\\/', ".", $package);
    	$settings = SettingsCache::getInstance()->getData($package_);
        if($settings === NULL){

        	$packageConfigFile = self::getConfigFile($package);

            $settings = json_decode(file_get_contents($packageConfigFile),true);
            
            $absoluteSettings = $settings;
            foreach (array_reverse(preg_split('/\/|\\\/', $package)) as $packagePath){
            	$absoluteSettings = array($packagePath=>$absoluteSettings);
            }
            SettingsCache::getInstance()->setData($absoluteSettings);
        }

        if(is_string($setting)){
            $settings = SettingsCache::getInstance()->getData($package_.".".$setting);
        }

        return $settings;

    }