question: public void addConnection ( Connection connection ) { if ( connection == null ) throw new IllegalArgumentException ( "connection cannot be null." ) ; synchronized ( connectionsLock ) { Connection [ ] newConnections = new Connection [ connections . length + 1 ] ; newConnections [ 0 ] = connection ; System . arraycopy ( connections , 0 , newConnections , 1 , connections . length ) ; connections = newConnections ; } connection . addListener ( invokeListener ) ; if ( TRACE ) trace ( "kryonet" , "Added connection to ObjectSpace: " + connection ) ; }
target:  Allows the remote end of the specified connection to access objects registered in this ObjectSpace.