\r
public abstract class ProviderOperation implements IProviderOperation {\r
\r
+ private static final String palos = "PALOS";\r
private static final EELFLogger logger = EELFManager.getInstance().getLogger(ProviderOperation.class);\r
protected static final Configuration configuration = ConfigurationFactory.getConfiguration();\r
\r
protected void doFailure(RequestContext rc, HttpStatus code, String message, Throwable cause) throws APPCException {\r
SvcLogicContext svcLogic = rc.getSvcLogicContext();\r
String msg = (message == null) ? code.getReasonPhrase() : message;\r
- if ((msg.contains("PALOS"))) {\r
- msg = msg.substring(msg.indexOf("PALOS"), msg.length());\r
- msg = msg.substring(msg.indexOf("PALOS"), msg.indexOf("\n"));\r
+ if ((msg.contains(palos))) {\r
+ msg = msg.substring(msg.indexOf(palos), msg.length());\r
+ msg = msg.substring(msg.indexOf(palos), msg.indexOf("\n"));\r
} else {\r
if (msg.contains("\n")) {\r
msg = msg.substring(0, msg.indexOf('\n'));\r