public object Get(GetGeoserverWorkspaceStylesRequestTep request)
        {
            var context = TepWebContext.GetWebContext(PagePrivileges.EverybodyView);
            GeoserverStylesResponse result = null;

            try {
                context.Open();
                context.LogInfo(this, string.Format("/geoserver/workspace/styles GET, identifier='{0}'", request.identifier));

                result = GeoserverFactory.GetStylesForWorkspace(request.identifier);

                context.Close();
            } catch (Exception e) {
                context.LogError(this, e.Message, e);
                context.Close();
                throw e;
            }

            return(new HttpResult(result));
        }
        public object Get(GetGeoserverGlobalStylesRequestTep request)
        {
            var context = TepWebContext.GetWebContext(PagePrivileges.EverybodyView);
            GeoserverStylesResponse result = null;

            try {
                context.Open();
                context.LogInfo(this, string.Format("/geoserver/styles GET"));

                result = GeoserverFactory.GetGlobalStyles();

                context.Close();
            } catch (Exception e) {
                context.LogError(this, e.Message, e);
                context.Close();
                throw e;
            }

            return(new HttpResult(result));
        }