String forcedProc = registry.getConfiguration().getProperty(PROP_INPUT_PROC); if ( forcedProc != null ) { proc = (ContentTypeProcessor) procsByName.get(forcedProc); if ( proc == null ) throw new IllegalArgumentException("Wrong input processor "+ "specified by "+PROP_INPUT_PROC); else return proc;
if ( StringUtil.isNullOrBlank(contentType) ) contentType = StringUtil.getFileType(url);   if ( contentType == null ) {  LOG.debug("Couldn't determine contentType using default Processor"); proc = defaultProc;  } else {  String forcedProc = registry.getConfiguration().getProperty(PROP_INPUT_PROC); if ( forcedProc != null ) {  proc = (ContentTypeProcessor) procsByName.get(forcedProc); if ( proc == null ) throw new IllegalArgumentException("Wrong input processor "+ "specified by "+PROP_INPUT_PROC);  } else { proc = (ContentTypeProcessor) processors.get(contentType); }
    private ContentTypeProcessor getProcessor(String contentType)    {        if ( contentType == null || "".equals(contentType) )            throw new IllegalArgumentException("Parameter contentType is not allowed to be null");                ContentTypeProcessor proc = null;        String forcedProc = registry.getConfiguration().getProperty(PROP_INPUT_PROC);        if ( forcedProc != null ) {            proc = (ContentTypeProcessor) procsByName.get(forcedProc);            if ( proc == null )                throw new IllegalArgumentException("Wrong input processor "+                                                   "specified by "+PROP_INPUT_PROC);            else                 return proc;        }                return  (ContentTypeProcessor) processors.get(contentType);        /*        if ( proc == null )             return defaultProc;        else            return proc;        */    }