* @return Mirror
*/
private Mirror parseMirror( String tagName, XmlPullParser parser, boolean strict )
throws IOException, XmlPullParserException
{
Mirror mirror = new Mirror();
java.util.Set parsed = new java.util.HashSet();
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( checkFieldWithDuplicate( parser, "mirrorOf", null, parsed ) )
{
mirror.setMirrorOf( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "name", null, parsed ) )
{
mirror.setName( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "url", null, parsed ) )
{
mirror.setUrl( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "layout", null, parsed ) )
{
mirror.setLayout( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "mirrorOfLayouts", null, parsed ) )
{
mirror.setMirrorOfLayouts( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "id", null, parsed ) )
{
mirror.setId( getTrimmedValue( parser.nextText() ) );
}
else
{
if ( strict )
{