{
OMContainer cbase = (OMContainer) base;
OMFactory cfactory = (OMFactory) factory;
if (OpenSearchConstants.TOTAL_RESULTS.equals(qname)) {
return (parserWrapper != null) ?
(T) new FOMTotalResults(qname, cbase, cfactory, parserWrapper) :
(T) new FOMTotalResults(qname, cbase, cfactory);
}
else if (OpenSearchConstants.ITEMS_PER_PAGE.equals(qname)) {
return (parserWrapper != null) ?
(T) new FOMItemsPerPage(qname, cbase, cfactory, parserWrapper) :
(T) new FOMItemsPerPage(qname, cbase, cfactory);