* @return Organization
*/
private Organization parseOrganization( String tagName, XmlPullParser parser, boolean strict )
throws IOException, XmlPullParserException
{
Organization organization = new Organization();
java.util.Set parsed = new java.util.HashSet();
while ( parser.nextTag() == XmlPullParser.START_TAG )
{
if ( checkFieldWithDuplicate( parser, "name", null, parsed ) )
{
organization.setName( getTrimmedValue( parser.nextText() ) );
}
else if ( checkFieldWithDuplicate( parser, "url", null, parsed ) )
{
organization.setUrl( getTrimmedValue( parser.nextText() ) );
}
else
{
if ( strict )
{