 //
 ////////////////////////////////////////////////////////////////////////////////
 
-// TODO (chiedozi): Should this be a singleton
 package spark.core.managers
 {
 import flash.net.SharedObject;

     */ 
    public function setProperty(key:String, value:Object):void
    {
        if (!initialized)
            initialize();
        
        // TODO (chiedozi): Don't call flush now
        if (enabled)
        {
            so.data[key] = value;
            so.flush();
        }
    }
    
    /**

     */ 
    public function getProperty(key:String):Object
    {
        // If the persistence manager hasn't been initialized, do so now
        if (!initialized)
            load();
        
        // Make sure the shared object is valid since initialization fails silently
        if (so != null)
            return so.data[key];
        
        return null;
