MappingLoader loader = (MappingLoader) iter.next(); if (loader.getSourceType().equals(sourceType) && (loader.getBindingType() == bindingType)) { return loader;
MappingLoaderFactory loaderFactory = (MappingLoaderFactory) iter.next(); if (loaderFactory.getSourceType().equals(sourceType) && (loaderFactory.getBindingType() == bindingType)) { MappingLoader mappingLoader = loaderFactory.getMappingLoader(); _mappingLoaders.add(mappingLoader); return mappingLoader;
    public MappingLoader getMappingLoader(            final String sourceType,            final BindingType bindingType) throws MappingException {        Iterator iter = _mappingLoaders.iterator();        while (iter.hasNext()) {            MappingLoader loader = (MappingLoader) iter.next();            if (loader.getSourceType().equals(sourceType)                    && (loader.getBindingType() == bindingType)) {                return loader;            }        }                String msg = "No mapping loader for: " + "SourceType=" + sourceType                   + " / BindingType=" + bindingType;        LOG.error(msg);        throw new MappingException(msg);    }