code: protected void setAttributes(FaceletContext ctx, Object instance) {
          if (instance != null) {
              Class type = instance.getClass();
              if (mapper == null || !this.lastType.equals(type)) {
                  this.lastType = type;
                  this.mapper = this.createMetaRuleset(type).finish();
              }
              this.mapper.applyMetadata(ctx, instance);
          }
      }
docs: Invoking/extending this method will cause the results of the created
  MetaRuleset to auto-wire state to the passed instance.
  
  @param ctx
  @param instance