question: protected boolean hasProjectNature ( MavenProject mavenProject , String natureId ) { if ( natureId == GWTNature . NATURE_ID || getGwtMavenPlugin ( mavenProject ) != null ) { return true ; } Plugin plugin = getEclipsePlugin ( mavenProject ) ; if ( plugin != null ) { Xpp3Dom configuration = ( Xpp3Dom ) plugin . getConfiguration ( ) ; if ( configuration != null ) { Xpp3Dom additionalBuildCommands = configuration . getChild ( "additionalProjectnatures" ) ; if ( additionalBuildCommands != null ) { for ( Xpp3Dom projectNature : additionalBuildCommands . getChildren ( "projectnature" ) ) { if ( projectNature != null && natureId . equals ( projectNature . getValue ( ) ) ) { return true ; } } } } } return false ; }
target:  Searches the Maven pom.xml for the given project nature.