// Register file transfer features on every established connection
 // to make sure we register them before creating our
 // ServiceDiscoveryManager
 static {
   Connection.addConnectionCreationListener(
       new ConnectionCreationListener() {
         public void connectionCreated(Connection connection) {
           FileTransferNegotiator.getInstanceFor(connection);
         }
       });
 }