* @return Exclusion
*/
private Exclusion parseExclusion( String tagName, XmlPullParser parser, boolean strict )
throws IOException, XmlPullParserException
{
Exclusion exclusion = new Exclusion();
java.util.Set parsed = new java.util.HashSet();
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( checkFieldWithDuplicate( parser, "artifactId", null, parsed ) )
{
exclusion.setArtifactId( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "groupId", null, parsed ) )
{
exclusion.setGroupId( getTrimmedValue( parser.nextText() ) );
}
else
{
if ( strict )
{