/// <summary>
        /// Creates whole sample structure.
        /// </summary>
        private async Task CreateAllAsync()
        {
            // You can no longer check to see if groups.json exists on disk here. You have to
            // open it and verify that it isn't null.
            Stream groupsJson = this.GetType().Assembly.GetManifestResourceStream("ArcGISRuntimeXamarin.groups.json");

            try
            {
                await Task.Run(() =>
                {
                    if (groupsJson == null)
                    {
                        throw new NotImplementedException("groups.json file cannot be opened");
                    }
                    _sampleStructureMap = SampleStructureMap.Create(groupsJson);
                });
            }
            // This is thrown if even one of the files requires permissions greater
            // than the application provides.
            catch (UnauthorizedAccessException e)
            {
                throw;                 //TODO
            }
            catch (DirectoryNotFoundException e)
            {
                throw;                 //TODO
            }
            catch (Exception e)
            {
                throw;                 //TODO
            }
        }