 package com.esri.builder.controllers.supportClasses
 {
 
+import com.esri.builder.supportClasses.LogUtil;
+
 import flash.events.StatusEvent;
 import flash.net.LocalConnection;
 


public final class LocalConnectionDelegate
{
    private static const LOG:ILogger = Log.getLogger('com.esri.builder.controllers.supportClasses.LocalConnectionDelegate');
    private static const CNAME:String = '_flexViewer';

    private var m_localConnection:LocalConnection;

    private function get localConnection():LocalConnection
    {
        if (m_localConnection === null)
        {
            if (Log.isDebug())
            {
                LOG.debug("Acquiring local connection");
            }

            m_localConnection = new LocalConnection();
            m_localConnection.addEventListener(StatusEvent.STATUS, localConnection_statusHandler);
        }
        return m_localConnection;
    }

    private function localConnection_statusHandler(event:StatusEvent):void

        try
        {
            //use Function#apply to avoid passing rest argument as Array
            localConnection.send.apply(null, [ CONNECTION_NAME, methodName ].concat(values));
        }
        catch (error:Error)
        {
