code: public static void updateImports( Instance instance, Map<String,Collection<Import>> variablePrefixToImports ) {
  		instance.getImports().clear();
  		if( variablePrefixToImports != null )
  			instance.getImports().putAll( variablePrefixToImports );
  	}
docs: Updates the imports of an instance with new values.
  @param instance the instance whose imports must be updated
  @param variablePrefixToImports the new imports (can be null)