* @param document document feed to find the parser for.
* @return the parser for the given document or <b>null</b> if there is no parser for that document.
*
*/
public FeedParser getParserFor(Document document) {
FeedParser parser = null;
for (int i=0;parser==null && i<PARSERS.size();i++) {
parser = (FeedParser) PARSERS.get(i);
if (!parser.isMyType(document)) {
parser = null;
}
}
return parser;
}