class AddSpecReplicasPathDecorator extends
    CustomResourceDefinitionVersionDecorator<CustomResourceSubresourcesFluent<?>> {

  private final String path;

  public AddSpecReplicasPathDecorator(String name, String version, String path) {
    super(name, version);
    this.path = path;
  }

  @Override
  public void andThenVisit(CustomResourceSubresourcesFluent<?> subresources) {<FILL_FUNCTION_BODY>}

  @Override
  public Class<? extends Decorator>[] after() {
    return new Class[] { AddCustomResourceDefinitionVersionDecorator.class,
        AddSubresourcesDecorator.class };
  }
}

    if (subresources.hasScale()) {
      subresources.editScale().withSpecReplicasPath(path).endScale();
    } else {
      subresources.withNewScale().withSpecReplicasPath(path).endScale();
    }
  
<methods>public void <init>(java.lang.String, java.lang.String) ,public Class<? extends Decorator#RAW>[] after() ,public abstract void andThenVisit(CustomResourceSubresourcesFluent<?>) ,public Class<? extends Decorator#RAW>[] before() ,public java.lang.String getName() ,public java.lang.String getVersion() ,public void visit(VisitableBuilder) <variables>protected static final java.lang.String ANY,private final non-sealed java.lang.String name,private final non-sealed java.lang.String version,private final CustomResourceDefinitionVersionVisitor versionSelector,private final VersionVisitor versionVisitor