@ SuppressWarnings ( "null" ) private IntegratorProtocol getIntegratorProtocol ( ValueMap properties ) { IntegratorProtocol protocol = IntegratorProtocol . AUTO ; try { String protocolString = properties . get ( IntegratorNameConstants . PN_INTEGRATOR_PROTOCOL , String . class ) ; if ( StringUtils . isNotEmpty ( protocolString ) ) { protocol = IntegratorProtocol . valueOf ( protocolString . toUpperCase ( ) ) ; } } catch ( IllegalArgumentException ex ) { // ignore } return protocol ; }
Read integrator protocol from content container . Default to AUTO .