code: public static JsonSchema createFromDatabase(final App app, final List<String> types) throws FrameworkException, URISyntaxException {
  
  		try (final Tx tx = app.tx()) {
  
  			final JsonSchema schema = StructrSchemaDefinition.initializeFromDatabase(app, types);
  
  			tx.success();
  
  			return schema;
  		}
  	}
docs: Creates JsonSchema instance from the current schema in Structr,
  including only a subset of schema nodes.
  
  @param app
  @param types
  
  @return the current Structr schema
  
  @throws FrameworkException
  @throws URISyntaxException