                     }
 
                     // TODO(dev) should it be "else" here?
-                    Log.i("skein-rest", URLLoadersQueue.name(loader) + " " + request.method.toUpperCase() + " " + request.url + (request.data ? " -> " + request.data : ""));
-                    loader.load(request);
+                    doLoadFromResource();
                 });
             }
         }
         else
         {
-            Log.i("skein-rest", URLLoadersQueue.name(loader) + " " + request.method.toUpperCase() + " " + request.url + (request.data ? " -> " + request.data : ""));
-            loader.load(request);
-        }
+            doLoadFromResource();
+        }
+    }
+
+    private function doLoadFromResource(): void {
+        Log.i("skein-rest", URLLoadersQueue.name(loader) + " " + request.method.toUpperCase() + " " + request.url + (request.data ? " -> " + request.data : ""));
+        loader.load(request);
     }
 
     skein_internal function retry():Boolean

import flash.net.URLRequestHeader;
import flash.net.URLRequestMethod;
import flash.net.URLVariables;
import flash.system.Capabilities;
import flash.utils.ByteArray;
import flash.utils.Timer;
import flash.utils.getDefinitionByName;

                    }
                    else // not yet in cache
                    {
                        doLoadFromResource();
                    }
                });
            }
