Customize reset credentials flow

Hi guys, I need to customize the reset credentials flow, by intercepting the password and OTP authentication. I made a few tests extending org.keycloak.authentication.authenticators.resetcred.ResetOTP and org.keycloak.authentication.authenticators.resetcred.ResetPassword, but in neither case the debug stopped, and I can’t find in the documentation the implementation for this actions. Does anybody knows which classes are being used?