public <T> Pipe<T> createPipe(Class<T> type, String name) {
return createPipe(type, new Config(name));
}
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);
}