InternalResource resource = null;
if ( src.trim().startsWith( "classpath:" ) ) {
resource = new ClassPathResource( src.substring( src.indexOf( ':' ) + 1 ) );
} else if (src.trim().startsWith( "URLClasspath:" )){
resource = new URLClassPathResource( src.substring( src.indexOf( ':' ) + 1 ) );
} else {
resource = new UrlResource( src );
((UrlResource)resource).setBasicAuthentication(basicAuthentication);
((UrlResource)resource).setUsername(username);
((UrlResource)resource).setPassword(password);