def METHOD_NAME(self, b_obj, b_bone, n_parent_node, n_root_node):
    """Exports a bone and all of its children."""
    # create a new nif block for this b_bone
    n_node = types.create_ninode(b_bone)
    n_node.name = block_store.get_full_name(b_bone)
    # link to nif parent node
    n_parent_node.add_child(n_node)
    self.export_bone_flags(b_bone, n_node)
    # set the pose on the nodes
    p_mat = math.get_object_bind(b_obj.pose.bones[b_bone.name])
    math.set_b_matrix_to_n_block(p_mat, n_node)
    # per-bone animation
    self.transform_anim.export_transforms(n_node, b_obj, self.b_action, b_bone)
    # continue down the bone tree
    for b_child in b_bone.children:
        self.METHOD_NAME(b_obj, b_child, n_node, n_root_node)