'Saves current config to a newly created profile.
:param profile_name: The profile to clone
:param profile_desc: The description of the new profile
:return: The new profile instance if the profile was successfully saved.
Else, raise a BaseFrameworkException.'

def save_current_to_new_profile(self, profile_name, profile_desc='', self_contained=False):

    profile_inst = profile()
    profile_inst.set_desc(profile_desc)
    profile_inst.set_name(profile_name)
    profile_inst.save(profile_name)
    return self.save_current_to_profile(profile_name, profile_desc, self_contained=self_contained)
