writeProfilesToStream(profiles, writer); } finally { writer.close();
writer= new FileOutputStream(file); try { writeProfilesToStream(profiles, writer); } finally { try { writer.close(); } catch (IOException e) {  } } } catch (IOException e) { throw createException(e, FormatterMessages.getString("CodingStyleConfigurationBlock.error.serializing_xml.message"));
	public static void writeProfilesToFile(Collection profiles, File file) throws IOException, CoreException {		final OutputStream writer= new FileOutputStream(file);		try {			writeProfilesToStream(profiles, writer);		} finally {			writer.close();		}	}