protected List<Message> createConcurrentList(){
  return Collections.synchronizedList(new ArrayList<Message>());
}

protected List < Message > createConcurrentList ( ) { return Collections . synchronizedList ( new ArrayList < Message > ( ) ) ; }
returns the arraylist as a synchronized list .
