parser.parse(new InputSource(stream), handler); } catch (Exception ex) { throw createException(ex, FormatterMessages.getString("CodingStyleConfigurationBlock.error.reading_xml.message"));
parser.parse(inputSource, handler); } catch (SAXException e) { throw createException(e, FormatterMessages.getString("CodingStyleConfigurationBlock.error.reading_xml.message")); } catch (IOException e) { throw createException(e, FormatterMessages.getString("CodingStyleConfigurationBlock.error.reading_xml.message")); } catch (ParserConfigurationException e) { throw createException(e, FormatterMessages.getString("CodingStyleConfigurationBlock.error.reading_xml.message"));
	private static List readProfilesFromStream(InputStream stream) throws CoreException {				final ProfileDefaultHandler handler= new ProfileDefaultHandler();		try {		    final SAXParserFactory factory= SAXParserFactory.newInstance();			final SAXParser parser= factory.newSAXParser();			parser.parse(new InputSource(stream), handler);		} catch (Exception ex) {			throw createException(ex, FormatterMessages.getString("CodingStyleConfigurationBlock.error.reading_xml.message"));  //$NON-NLS-1$		}		return handler.getProfiles();	}