@staticmethod
def __fix_formcomponent_indexes(form_obj):
    """
        This method is a temporary fix to append an index attribute to each
        form component to be sent to NetMagus as JSON.  Eventually this will
        be done in the NetMagus back-end upon receipt according to the order
        of the list of form controls.  For now these are being added here in
        the same fashion before being sent to the NetMagus back-end.
        :param form_obj: a netmagus.NetOpStep object to be serialized and
        sent to NetMagus
        """
    index_counter = 0
    for item in form_obj.form:
        setattr(item, 'index', index_counter)
        index_counter += 1
