Update connection.java