package io.quarkus.registry.catalog;

import io.quarkus.registry.json.JsonBuilder;
import java.util.Map;

public interface Category {

    String MD_PINNED = "pinned";

    String getId();

    String getName();

    String getDescription();

    Map<String, Object> getMetadata();

    default Mutable mutable() {
        return Category.builder();
    }

    interface Mutable extends Category, JsonBuilder<Category> {

        Mutable setId(String id);

        Mutable setName(String name);

        Mutable setDescription(String description);

        Mutable setMetadata(Map<String, Object> metadata);

        Mutable setMetadata(String name, Object value);

        Mutable removeMetadata(String key);

        @Override
        Category build();
    }

    /**
     * @return a new mutable instance
     */
    static Mutable builder() {
        return new CategoryImpl.Builder();
    }
}

@@ -323,24 +323,28 @@
  return 
+new 
 Category
 .builder
@@ -339,17 +339,25 @@
 gory
-.b
+Impl.B
 uilder(
+this
 );%0A 

Fix `Category#mutable` default method to return copy