final App app = StructrApp.getInstance();
try (final Tx tx = app.tx()) {
// create push transmission to be filled later
final PushTransmission tms = new PushTransmission(username, password, host, port.intValue());
for (final SchemaNode node : app.nodeQuery(SchemaNode.class).getAsList()) {
if (isFalseOrNull(node.getProperty(SchemaNode.isBuiltinType))) {
tms.getExportSet().add(node);
}
}
for (final SchemaRelationship rel : app.relationshipQuery(SchemaRelationship.class).getAsList()) {
tms.getExportSet().add(rel);
}
// push schema
CloudService.doRemote(tms, new WebsocketProgressListener(getWebSocket(), key));