How to modify keycloak class?

Hi Guys,

I need to change value of ADDITIONAL_REQ_PARAMS_MAX_SIZE in the AuthzEndpointRequestParser. Is it possible to place recompiled version of this class to some location to override standard keycloak class?
I did such trick for web applications packaged in war file via adding new class to
WEB-INF/classes folder.