protected Model getModel(EnforcerRuleHelper helper) throws EnforcerRuleException
    {
        MavenProject project = getMavenProject(helper);
        Model model;
        Reader reader = null;
        try {
            reader = new FileReader(project.getFile());
            MavenXpp3Reader xpp3Reader = new MavenXpp3Reader();
            model = xpp3Reader.read(reader);
        } catch (Exception e) {
            throw new EnforcerRuleException("Failed to read pom file [" + project.getFile() + "]", e);
        } finally {
            if (reader != null) {
                try {
                    reader.close();
                } catch (Exception ee) {
                    throw new EnforcerRuleException("Failed to close stream after reading pom file ["
                        + project.getFile() + "]", ee);
                }
            }
        }
        return model;
    }
protected Model getModel ( EnforcerRuleHelper helper ) throws EnforcerRuleException { MavenProject project = getMavenProject ( helper ) ; Model model ; Reader reader = null ; try { reader = new FileReader ( project . getFile ( ) ) ; MavenXpp3Reader xpp3Reader = new MavenXpp3Reader ( ) ; model = xpp3Reader . read ( reader ) ; } catch ( Exception e ) { throw new EnforcerRuleException ( "Failed to read pom file [" + project . getFile ( ) + "]" , e ) ; } finally { if ( reader != null ) { try { reader . close ( ) ; } catch ( Exception ee ) { throw new EnforcerRuleException ( "Failed to close stream after reading pom file [" + project . getFile ( ) + "]" , ee ) ; } } } return model ; }
The Maven model as it's present in the project's {@code pom.xml} (non resolved).

@param helper the enforcer helper object
@return the Model instance for the current Maven project (this contains the raw data from the pom.xml file
before any interpolation)
@throws EnforcerRuleException if an error occurred getting the Model instance