Java: Is there a way to disable CSRF check

OWASP CSRF has been already configured with application, but some clients want this check and some clients don’t.

So instead of creating 2 separate builds, I am looking for solution which can allow CSRF check to enable/disable based on property value.