agave-systems/systems-core/src/main/java/org/iplantc/service/systems/manager/SystemManager.java
/**
	 * Removes the user from all RemtoeSystem.usersUsingAsDefault lists and
	 * thus resets them to the system defaults.
	 * 
	 * @param apiUsername
	 * @throws SystemArgumentException 
	 */
Removes the user from all RemtoeSystem.usersUsingAsDefault lists and
thus resets them to the system defaults.

@param apiUsername
@throws SystemArgumentException
Removes the user from all RemtoeSystem . usersUsingAsDefault lists and thus resets them to the system defaults . @param apiUsername @throws SystemArgumentException
public void clearUserDefaultSystems(String apiUsername) throws SystemArgumentException
	{
		if (StringUtils.isEmpty(apiUsername)) {
			throw new SystemArgumentException("No username provided.");
		}
		for(RemoteSystem currentDefaultSystem: getDao().findUserDefaultSystems(apiUsername)) 
		{
			currentDefaultSystem.getUsersUsingAsDefault().remove(apiUsername);
			getDao().merge(currentDefaultSystem);
			getEventProcessor().processSystemUpdateEvent(currentDefaultSystem, SystemEventType.UNSET_USER_DEFAULT, apiUsername);
		}
	}
public void clearUserDefaultSystems ( String apiUsername ) throws SystemArgumentException { if ( StringUtils . isEmpty ( apiUsername ) ) { throw new SystemArgumentException ( "No username provided." ) ; } for ( RemoteSystem currentDefaultSystem : getDao ( ) . findUserDefaultSystems ( apiUsername ) ) { currentDefaultSystem . getUsersUsingAsDefault ( ) . remove ( apiUsername ) ; getDao ( ) . merge ( currentDefaultSystem ) ; getEventProcessor ( ) . processSystemUpdateEvent ( currentDefaultSystem , SystemEventType . UNSET_USER_DEFAULT , apiUsername ) ; } }
Removes the user from all RemtoeSystem.usersUsingAsDefault lists and
 thus resets them to the system defaults.
Removes the user from all RemtoeSystem . usersUsingAsDefault lists and thus resets them to the system defaults .
//			NotificationManager.process(currentDefaultSystem.getUuid(), "UNSET_DEFAULT_SYSTEM", apiUsername);