code: public static ConnectionInformation fromDataSource(CommonDataSource dataSource, Connection connection, long timeToGetConnectionNs) {
      final ConnectionInformation connectionInformation = new ConnectionInformation();
      connectionInformation.dataSource = dataSource;
      connectionInformation.connection = connection;
      connectionInformation.timeToGetConnectionNs = timeToGetConnectionNs;
      return connectionInformation;
    }
docs: Creates a new {@link ConnectionInformation} instance for a {@link Connection} which has been obtained via a
  {@link CommonDataSource}
  
  @param dataSource            the {@link javax.sql.CommonDataSource} which created the {@link #connection}
  @param connection            the {@link #connection} created by the {@link #dataSource}
  @param timeToGetConnectionNs the time it took to obtain the connection in nanoseconds
  @return a new {@link ConnectionInformation} instance