public long getTimeout() { RequestMessageType requestMessageType = (RequestMessageType) jaxbElement.getValue(); RequestHeaderType requestHeader = requestMessageType.getRequestHeader(); long timeOut = 1; if (requestHeader != null && requestHeader.getResultWaittimeMs() > -1) { timeOut = requestHeader.getResultWaittimeMs(); } return timeOut; }