return new RemoteApplicationRegistry( logger, url );
m_flag = true; m_registry = new RemoteApplicationRegistry( logger, url ); return m_registry;
    private ApplicationRegistry getLocalApplicationRegistry( URI uri )    {        try        {            Logger logger = getLogger();            URL url = getStorageURL( uri );            return new RemoteApplicationRegistry( logger, url );        }        catch( Exception e )        {            final String error =               "Unexpected error while loading application registry from the uri ["              + uri              + "].";            getLogger().error( error, e );            throw new RuntimeException( error, e );        }    }