public IStatus exportPreferences(IEclipsePreferences node, OutputStream output, String[] excludesList) throws CoreException {  if (node == null || output == null) throw new IllegalArgumentException(); Properties properties = null; if (excludesList == null) excludesList = new String[0];
public void exportPreferences(IEclipsePreferences node, IPreferenceFilter[] filters, OutputStream stream) throws CoreException { if (filters == null || filters.length == 0) return;
	public IStatus exportPreferences(IEclipsePreferences node, OutputStream output, String[] excludesList) throws CoreException {		// TODO investigate refactoring to merge with new #export(IEclipsePreferences, IPreferenceFilter[]) APIs		if (node == null || output == null)			throw new IllegalArgumentException();		Properties properties = null;		if (excludesList == null)			excludesList = new String[0];		try {			properties = convertToProperties(node, excludesList);			if (properties.isEmpty())				return Status.OK_STATUS;			properties.put(VERSION_KEY, Float.toString(EXPORT_VERSION));			properties.put(EXPORT_ROOT_PREFIX + node.absolutePath(), EMPTY_STRING);		} catch (BackingStoreException e) {			throw new CoreException(createStatusError(e.getMessage(), e));		}		try {			properties.store(output, null);		} catch (IOException e) {			throw new CoreException(createStatusError(PrefsMessages.preferences_exportProblems, e));		}		return Status.OK_STATUS;	}