[BUG]if ( hasFileExtensionIgnoreCase( f.getName( ) , format.getExtension( ) ) )  {     return format; }[BUG][CONTEXT] if (format.isXml()) { String firstTag = getFirstTag(f); if (firstTag == null) { continue; } if (firstTag.equals(format.firstElement)) { return format; } } else { <extra_id_0> return format; } }[CONTEXT]