return (CommandError) getOneElement("applicationerror");\r
}\r
\r
- public boolean hasPazpar2Error() {\r
- return hasApplicationError() && getApplicationError().hasPazpar2Error();\r
+ public boolean hasServiceError() {\r
+ return hasApplicationError() \r
+ && getApplicationError().isServiceError(); \r
}\r
\r
- \r
- \r
+ public ServiceError getServiceError() {\r
+ return (hasServiceError()? getApplicationError().getServiceError() : null);\r
+ }\r
+ \r
public void setXml(String xml) {\r
this.xml = xml; \r
}\r