def getByID(objid):
    """
    We rebuild the object from its id.

    Args:
        objid (str):  object identifier

    Returns:
         Hecuba Object

    """
    """
               TODO
               Args:
                   objid (str):  object identifier
               Returns:
                    (Block| Storageobj)
               """
    from hecuba import log
    from hecuba.IStorage import build_remotely
    from hecuba import config
    import uuid
    query = 'SELECT * FROM hecuba.istorage WHERE storage_id = %s'
    if isinstance(objid, str):
        objid = uuid.UUID(objid)
    results = config.session.execute(query, [objid])
    if not results:
        raise RuntimeError('Object {} not found on hecuba.istorage'.format(
            objid))
    results = results[0]
    log.debug('IStorage API:getByID(%s) of class %s', objid, results.class_name
        )
    return build_remotely(results._asdict())
