code: static DatabaseId of(String name) {
      Map<String, String> parts = NAME_TEMPLATE.match(name);
      Preconditions.checkArgument(
          parts != null, "Name should conform to pattern %s: %s", NAME_TEMPLATE, name);
      return of(parts.get("project"), parts.get("instance"), parts.get("database"));
    }
docs: Creates a {@code DatabaseId} from the name of the database.
  
  @param name the database name of the form {@code
  projects/PROJECT_ID/instances/INSTANCE_ID/databases/DATABASE_ID}
  @throws IllegalArgumentException if {@code name} does not conform to the expected pattern