public static Model getModelFromPOM(File pom, Log logger) throws IOException, XmlPullParserException {
		Model model = null;
		FileInputStream fis = null;
		InputStreamReader isr = null;
		try {
			fis = new FileInputStream(pom);
			isr = new InputStreamReader(fis, "utf-8"); // FIXME
			MavenXpp3Reader reader = new MavenXpp3Reader();
			model = reader.read(isr);
		} finally {
			try {
				isr.close();
				fis.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		
		return model;
	}
public static Model getModelFromPOM(File pom, Log logger) throws IOException, XmlPullParserException {
		Model model = null;
		FileInputStream fis = null;
		InputStreamReader isr = null;
		try {
			fis = new FileInputStream(pom);
			isr = new InputStreamReader(fis, "utf-8"); 
			MavenXpp3Reader reader = new MavenXpp3Reader();
			model = reader.read(isr);
		} finally {
			try {
				isr.close();
				fis.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		
		return model;
	}
public static Model getModelFromPOM ( File pom , Log logger ) throws IOException , XmlPullParserException { Model model = null ; FileInputStream fis = null ; InputStreamReader isr = null ; try { fis = new FileInputStream ( pom ) ; isr = new InputStreamReader ( fis , "utf-8" ) ; // FIXME MavenXpp3Reader reader = new MavenXpp3Reader ( ) ; model = reader . read ( isr ) ; } finally { try { isr . close ( ) ; fis . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } return model ; }
Load a Maven {@link Model} object from a POM file.

@param pom
@param logger
@return the model parsed from the POM file
@throws XmlPullParserException
@throws IOException
Load a Maven { @link Model } object from a POM file .