Buggy code:
public final class InsertReadingMainApp { private static final Logger LOGGER = Logger . getLogger ( InsertReadingMainApp . class ) ; private InsertReadingMainApp ( ) { } public static void main ( final String [ ] args ) throws Exception { PropertyConfigurator . configure ( InsertReadingMainApp . class . getClassLoader ( ) . getResource ( "log4j.properties" ) ) ; NodeReading nodeReading1 = new NodeReading ( ) ; nodeReading1 . setTestbedId ( "3" ) ; nodeReading1 . setNodeId ( "urn:ctinetwork:carrot_delete_me" ) ; nodeReading1 . setCapabilityName ( "urn:ctinetwork:node:capability:lockScreen" ) ; nodeReading1 . setTimestamp ( Long . toString ( new Date ( ) . getTime ( ) ) ) ; nodeReading1 . setReading ( "1.0" ) ; InsertReadingMainApp . LOGGER . info ( nodeReading1 . toDelimitedString ( ) ) ; NodeReading nodeReading2 = new NodeReading ( ) ; nodeReading2 . setTestbedId ( "3" ) ; nodeReading2 . setNodeId ( "urn:ctinetwork:carrot_delete_moi" ) ; nodeReading2 . setCapabilityName ( "urn:ctinetwork:node:capability:lockScreen" ) ; nodeReading2 . setTimestamp ( Long . toString ( new Date ( ) . getTime ( ) ) ) ; nodeReading2 . setReading ( "1.0" ) ; InsertReadingMainApp . LOGGER . info ( nodeReading2 . toDelimitedString ( ) ) ; <START_BUG> final String restBaseUrl = "http:////uberdust.cti.gr//rest" ; <END_BUG> InsertReadingMainApp . LOGGER . info ( ( ( ( "Calling<seq2seq4repair_space>REST<seq2seq4repair_space>at<seq2seq4repair_space>(" + restBaseUrl ) + ( nodeReading1 . toRestString ( ) ) ) + ")" ) ) ; String result = InsertReadingRestClient . getInstance ( ) . callRestfulWebService ( ( restBaseUrl + ( nodeReading1 . toRestString ( ) ) ) ) ; if ( ! ( result . contains ( "OK" ) ) ) { InsertReadingMainApp . LOGGER . error ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>insert<seq2seq4repair_space>reading" ) ; throw new RuntimeException ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>insert<seq2seq4repair_space>reading" ) ; } InsertReadingMainApp . LOGGER . info ( ( ( ( "Calling<seq2seq4repair_space>REST<seq2seq4repair_space>at<seq2seq4repair_space>(" + restBaseUrl ) + ( nodeReading2 . toRestString ( ) ) ) + ")" ) ) ; result = InsertReadingRestClient . getInstance ( ) . callRestfulWebService ( ( restBaseUrl + ( nodeReading2 . toRestString ( ) ) ) ) ; if ( ! ( result . contains ( "OK" ) ) ) { InsertReadingMainApp . LOGGER . error ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>insert<seq2seq4repair_space>reading" ) ; throw new RuntimeException ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>insert<seq2seq4repair_space>reading" ) ; } final String webSocketUrl = "ws:////carrot.cti.gr:8080//uberdust//insertreading.ws" ; InsertReadingMainApp . LOGGER . info ( ( ( "Calling<seq2seq4repair_space>WebSocket<seq2seq4repair_space>at<seq2seq4repair_space>(" + webSocketUrl ) + ")<seq2seq4repair_space>connecting" ) ) ; InsertReadingWebSocketClient . getInstance ( ) . connect ( webSocketUrl ) ; InsertReadingMainApp . LOGGER . info ( "Calling<seq2seq4repair_space>sendNodeReading(nodeReading1)" ) ; InsertReadingWebSocketClient . getInstance ( ) . sendNodeReading ( nodeReading1 ) ; InsertReadingMainApp . LOGGER . info ( "Calling<seq2seq4repair_space>sendNodeReading(nodeReading2)" ) ; InsertReadingWebSocketClient . getInstance ( ) . sendNodeReading ( nodeReading2 ) ; } }

Fix:
final String restBaseUrl = "http:////carrot.cti.gr:8080//uberdust//rest" ;