protected void setServerRefreshIndicator(OperationResult<?> opResults, RESP response) {
        Optional<String> processState = opResults.getOptionalProcessState();
        if (processState.isPresent()) {
            try {
                response.setServerRefreshIndicator(ServerRefreshIndicator.fromValue(processState.get().toUpperCase()));
            } catch (Exception e) {
                log.warnf("Cannot set server refresh indicator - process state is invalid", e);
            }
        }
    }
protected void setServerRefreshIndicator ( OperationResult < ? > opResults , RESP response ) { Optional < String > processState = opResults . getOptionalProcessState ( ) ; if ( processState . isPresent ( ) ) { try { response . setServerRefreshIndicator ( ServerRefreshIndicator . fromValue ( processState . get ( ) . toUpperCase ( ) ) ) ; } catch ( Exception e ) { log . warnf ( "Cannot set server refresh indicator - process state is invalid" , e ) ; } } }
Given the results of an operation, this will set the {@link ServerRefreshIndicator}
found in those results in the given response.

@param opResults contains the DMR results
@param response the response message