@staticmethod
def _from_db_object(x509keypair, db_x509keypair):
    """Converts a database entity to a formal object."""
    for field in x509keypair.fields:
        setattr(x509keypair, field, db_x509keypair[field])
    x509keypair.obj_reset_changes()
    return x509keypair
