}
public <T> Pipe<T> createPipe(Class<T> type, Config config, Authenticator authenticator) {
AuthenticatorAdapter adapter = (AuthenticatorAdapter) authenticator;
JavaScriptObject object =
setup(config.name, config.type.getName(), config.recordId, config.baseUrl, adapter.unwrap());
return new PipeAdapter<T>(type, object);
}
public static class Config {
private String name;