* @return Activation
*/
private Activation parseActivation( String tagName, XmlPullParser parser, boolean strict )
throws IOException, XmlPullParserException
{
Activation activation = new Activation();
java.util.Set parsed = new java.util.HashSet();
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( checkFieldWithDuplicate( parser, "activeByDefault", null, parsed ) )
{
activation.setActiveByDefault( getBooleanValue( getTrimmedValue( parser.nextText() ), "activeByDefault", parser, "false" ) );
}
else if ( checkFieldWithDuplicate( parser, "jdk", null, parsed ) )
{
activation.setJdk( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "os", null, parsed ) )
{
activation.setOs( parseActivationOS( "os", parser, strict ) );
}
else if ( checkFieldWithDuplicate( parser, "property", null, parsed ) )
{
activation.setProperty( parseActivationProperty( "property", parser, strict ) );
}
else if ( checkFieldWithDuplicate( parser, "file", null, parsed ) )
{
activation.setFile( parseActivationFile( "file", parser, strict ) );
}
else
{
if ( strict )
{