@classmethod
def get_component_oid_by_name(cls, session, component_key, oid_name):
    """Get OID that is associated with a particular component (by human-readable name)
        Args:
            session: database session
            component_key(int): key of the component
            oid_name(str): OID name
        Returns:
            tuple: SNMP OID that belongs to the enclosing asset (as str), key of the asset component belongs to (int)
        """
    result = session.run(
        """
            MATCH (component:Component { key: $key})<-[:HAS_COMPONENT]-(p:Asset)-[:HAS_OID]->(oid:OID {OIDName: $name})
            RETURN oid, p.key as parent_key
            """
        , name=oid_name, key=component_key)
    record = result.single()
    oid_info = record.get('oid')
    parent_key = record.get('parent_key')
    return oid_info['OID'], int(parent_key
        ) if oid_info and 'OID' in oid_info else None
