def METHOD_NAME(self):
    """
    Create context manager for RDB connection using getConnection method of Java
    TimeSeries client (i.e. to ensure connection is closed after use)
    """
    conn = None
    try:            
        conn = self.connection.getConnection()
        yield conn
    finally:
        if conn is not None:
            conn.close()