Buggy code:
@ XStreamAlias ( "crc16EncapsulationCommandClass" ) public class ZWaveCRC16EncapsulationCommandClass extends ZWaveCommandClass { @ XStreamOmitField private static final Logger logger = LoggerFactory . getLogger ( ZWaveCRC16EncapsulationCommandClass . class ) ; public ZWaveCRC16EncapsulationCommandClass ( ZWaveNode node , ZWaveController controller , ZWaveEndpoint endpoint ) { } @ Override public CommandClass getCommandClass ( ) { } @ Override public void handleApplicationCommandRequest ( SerialMessage serialMessage , int offset , int endpointId ) { } private void handleCRC16EncapResponse ( SerialMessage serialMessage , int offset ) { ZWaveCRC16EncapsulationCommandClass . logger . trace ( "Process<seq2seq4repair_space>CRC16<seq2seq4repair_space>Encapsulation" ) ; byte [ ] payload = serialMessage . getMessagePayload ( ) ; byte [ ] messageCrc = Arrays . copyOfRange ( payload , ( ( payload . length ) - 2 ) , payload . length ) ; byte [ ] tocheck = Arrays . copyOfRange ( payload , ( offset - 2 ) , ( ( payload . length ) - 2 ) ) ; short calculatedCrc = crc_ccit ( tocheck ) ; ByteBuffer byteBuffer = ByteBuffer . allocate ( 2 ) ; byteBuffer . putShort ( calculatedCrc ) ; if ( ! ( Arrays . equals ( messageCrc , byteBuffer . array ( ) ) ) ) { <START_BUG> ZWaveCRC16EncapsulationCommandClass . logger . error ( "NODE<seq2seq4repair_space>%d:<seq2seq4repair_space>CRC<seq2seq4repair_space>check<seq2seq4repair_space>failed<seq2seq4repair_space>message<seq2seq4repair_space>contains<seq2seq4repair_space>%s<seq2seq4repair_space>but<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>%s" , this . getNode ( ) . getNodeId ( ) , SerialMessage . bb2hex ( messageCrc ) , SerialMessage . bb2hex ( byteBuffer . array ( ) ) ) ; <END_BUG> return ; } CommandClass commandClass ; ZWaveCommandClass zwaveCommandClass ; int commandClassCode = serialMessage . getMessagePayloadByte ( offset ) ; commandClass = CommandClass . getCommandClass ( commandClassCode ) ; if ( commandClass == null ) { ZWaveCRC16EncapsulationCommandClass . logger . error ( String . format ( "NODE<seq2seq4repair_space>%d:<seq2seq4repair_space>Unsupported<seq2seq4repair_space>command<seq2seq4repair_space>class<seq2seq4repair_space>0x%02x" , this . getNode ( ) . getNodeId ( ) , commandClassCode ) ) ; } else { zwaveCommandClass = this . getNode ( ) . getCommandClass ( commandClass ) ; if ( zwaveCommandClass == null ) { ZWaveCRC16EncapsulationCommandClass . logger . debug ( String . format ( "NODE<seq2seq4repair_space>%d:<seq2seq4repair_space>Command<seq2seq4repair_space>class<seq2seq4repair_space>%s<seq2seq4repair_space>(0x%02x)<seq2seq4repair_space>not<seq2seq4repair_space>found,<seq2seq4repair_space>trying<seq2seq4repair_space>to<seq2seq4repair_space>add<seq2seq4repair_space>it." , getNode ( ) . getNodeId ( ) , commandClass . getLabel ( ) , commandClass . getKey ( ) ) ) ; zwaveCommandClass = ZWaveCommandClass . getInstance ( commandClass . getKey ( ) , getNode ( ) , getController ( ) ) ; if ( zwaveCommandClass != null ) { ZWaveCRC16EncapsulationCommandClass . logger . debug ( String . format ( "NODE<seq2seq4repair_space>%d:<seq2seq4repair_space>Adding<seq2seq4repair_space>command<seq2seq4repair_space>class<seq2seq4repair_space>%s<seq2seq4repair_space>(0x%02x)" , getNode ( ) . getNodeId ( ) , commandClass . getLabel ( ) , commandClass . getKey ( ) ) ) ; getNode ( ) . addCommandClass ( zwaveCommandClass ) ; } } if ( zwaveCommandClass == null ) { ZWaveCRC16EncapsulationCommandClass . logger . error ( String . format ( "NODE<seq2seq4repair_space>%d:<seq2seq4repair_space>CommandClass<seq2seq4repair_space>%s<seq2seq4repair_space>(0x%02x)<seq2seq4repair_space>not<seq2seq4repair_space>implemented." , this . getNode ( ) . getNodeId ( ) , commandClass . getLabel ( ) , commandClassCode ) ) ; } else { ZWaveCRC16EncapsulationCommandClass . logger . debug ( String . format ( "NODE<seq2seq4repair_space>%d:<seq2seq4repair_space>Calling<seq2seq4repair_space>handleApplicationCommandRequest." , this . getNode ( ) . getNodeId ( ) ) ) ; zwaveCommandClass . handleApplicationCommandRequest ( serialMessage , ( offset + 1 ) , 0 ) ; } } } private short crc_ccit ( final byte [ ] args ) { } }

Fix:
ZWaveCRC16EncapsulationCommandClass . logger . error ( "NODE<seq2seq4repair_space>{}:<seq2seq4repair_space>CRC<seq2seq4repair_space>check<seq2seq4repair_space>failed<seq2seq4repair_space>message<seq2seq4repair_space>contains<seq2seq4repair_space>{}<seq2seq4repair_space>but<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>{}" , this . getNode ( ) . getNodeId ( ) , SerialMessage . bb2hex ( messageCrc ) , SerialMessage . bb2hex ( byteBuffer . array ( ) ) ) ;