public void Execute(IGetFeatureTypeInfoStatusRequest request, Action <IGetFeatureTypeInfoStatusResponse> responseBoundary)
        {
            if (request == null)
            {
                throw new ArgumentNullException("request", "Use case request cannot be null!");
            }
            if (responseBoundary == null)
            {
                throw new ArgumentNullException("responseBoundary", "Response handler cannot be null!");
            }

            try
            {
                var response = restClient.GetLayerInfoBy(request.Layer.Datastore, request.Layer.Workspace,
                                                         request.Layer.Name);

                var status = GetStatusFromResponse(response);

                responseBoundary(new GetFeatureTypeInfoStatusResponse(status));
            }
            catch (Exception ex)
            {
                throw new UseCaseExecutionException("An error occurred while trying to get Layer Status!", ex);
            }
        }
        public void Execute(IGetFeatureTypeInfoStatusRequest request, Action<IGetFeatureTypeInfoStatusResponse> responseBoundary)
        {
            if (request == null)
                throw new ArgumentNullException("request", "Use case request cannot be null!");
            if (responseBoundary == null)
                throw new ArgumentNullException("responseBoundary", "Response handler cannot be null!");

            try
            {
                var response = restClient.GetLayerInfoBy(request.Layer.Datastore, request.Layer.Workspace,
                    request.Layer.Name);

                var status = GetStatusFromResponse(response);

                responseBoundary(new GetFeatureTypeInfoStatusResponse(status));
            }
            catch (Exception ex)
            {
                throw new UseCaseExecutionException("An error occurred while trying to get Layer Status!", ex);
            }
        }