<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _mirror_groups_from_stormpath(self):
 """Helper method for saving to the local db groups that are missing but are on Stormpath"""

        APPLICATION = get_application()
        sp_groups = [g.name for g in APPLICATION.groups]
        missing_from_db, missing_from_sp = self._get_group_difference(sp_groups)

        if missing_from_db:
            groups_to_create = []

            for g_name in missing_from_db:
                groups_to_create.append(Group(name=g_name))

            Group.objects.bulk_create(groups_to_create)