log.debug("Trying to resolve XML entity with public ID [" + publicId + "] and system ID [" + systemId + "]");
if (systemId != null && systemId.indexOf(DozerConstants.XSD_NAME) > systemId.lastIndexOf("/")) {
String fileName = systemId.substring(systemId.indexOf(DozerConstants.XSD_NAME));
log.debug("Trying to locate [" + fileName + "] in classpath");
try {
ResourceLoader resourceLoader = new ResourceLoader();
InputStream stream = resourceLoader.getResource(fileName).openStream();
InputSource source = new InputSource(stream);
source.setPublicId(publicId);
source.setSystemId(systemId);
log.debug("Found beanmapping XML Schema [" + systemId + "] in classpath");
return source;