if (host != null && port != null && username != null && password != null && key != null) {
final App app = StructrApp.getInstance();
try (final Tx tx = app.tx()) {
final List<SyncableInfo> syncables = CloudService.doRemote(new SingleTransmission<>(new ListSyncables(type), username, password, host, port.intValue()), new WebsocketProgressListener(getWebSocket(), key));
final StructrWebSocket webSocket = getWebSocket();
if (syncables != null) {
final List<GraphObject> result = new LinkedList<>();
for (final SyncableInfo info : syncables) {