@Override
public Wagon lookup(final String roleHint) throws Exception {
if (roleHint.equals(HTTP)) {
return setAuthenticator(new LightweightHttpWagon());
} else if (roleHint.equals(HTTPS)) {
return setAuthenticator(new LightweightHttpsWagon());
} else if (roleHint.equals(FILE)) {
return new FileWagon();
}
throw new RuntimeException("Role hint not supported: " + roleHint);