+ \r
+ @Override\r
+ public CategoriesResponse run () {\r
+ if (Pz2Service.get().getPzresp().getSp().getCategories().unsupportedCommand()) {\r
+ logger.info("Skipping seemingly unsupported categories command"); \r
+ return new CategoriesResponse();\r
+ } else {\r
+ if (Pz2Service.get().isServiceProxyService()) {\r
+ try {\r
+ CategoriesResponse response = (CategoriesResponse) super.run();\r
+ if (response.unsupportedCommand()) {\r
+ logger.warn("Command 'categories' not supported by this Service Proxy"); \r
+ }\r
+ return response;\r
+ } catch (Exception e) {\r
+ e.printStackTrace();\r
+ return new CategoriesResponse();\r
+ }\r
+ } else {\r
+ return new CategoriesResponse();\r
+ }\r
+ }\r
+ }\r