code: public final Connection getConnection (final Session session, final Configuration initConfiguration, final InetSocketAddress inetAddress, final short initConnectionID) {
  
          try {
              final Connection newConnection = new Connection(session, initConfiguration, inetAddress, initConnectionID);
              return newConnection;
          } catch (Exception e) {
              LOGGER.error("This exception is thrown: " + e);
              e.printStackTrace();
              return null;
          }
      }
docs: Method to create and return a new, empty <code>Connection</code> object with the configured layer of threading.
  
  @param session Reference to the <code>AbsSession</code> object, which contains this connection.
  @param initConfiguration The configuration to use within this connection.
  @param inetAddress The <code>InetSocketAddress</code> to which this connection should established.
  @param initConnectionID The ID of this connection.
  @return AbsConnection The Connection Object.