}
private static Model getMavenModelFromPom(String filename) throws IOException, XmlPullParserException {
InputSource inputSource = new InputSource();
inputSource.setLocation(filename);
final Model model = new MavenXpp3ReaderEx().read(new FileInputStream(filename), true, inputSource);
model.setPomFile(new File(filename));
return model;
}