code: @Path("/spaces")
      @GET
      @Produces(XML)
      public Response getSpaces(@QueryParam("storeID") String storeID) {
          String msg = "getting spaces(" + storeID + ")";
  
          try {
              String xml = spaceResource.getSpaces(storeID);
              return responseOkXml(msg, xml);
  
          } catch (ResourceException e) {
              return responseBad(msg, e, INTERNAL_SERVER_ERROR);
  
          } catch (Exception e) {
              return responseBad(msg, e, INTERNAL_SERVER_ERROR);
          }
      }
docs: see SpaceResource.getSpaces()
  
  @return 200 response with XML listing of spaces