Security.setProperty("ocsp.enable", "true") doesn't work

I try to enable OCSP checking:

// initialize a new TMF with our keyStore
     TrustManagerFactory tmf = TrustManagerFactory.getInstance("PKIX", "SunJSSE");

     if (enableRevocationChecking) {
        // keyStore must not be empty
        CertPathParameters pkixParams = new PKIXBuilderParameters(keyStore, new X509CertSelector());

        // Activate certificate revocation checking
        ((PKIXBuilderParameters) pkixParams).setRevocationEnabled(true);

        // Activate OCSP
        Security.setProperty("ocsp.enable", "true");

        tmf.init(new CertPathTrustManagerParameters(pkixParams));
     } else {

     // acquire X509 trust manager from factory
     TrustManager tms[] = tmf.getTrustManagers();
     for (TrustManager tm : tms) {
        if (tm instanceof X509TrustManager) {
           trustManager = (X509TrustManager) tm;

This is a common code and it's being used from different JVMs, in our project we have several JVMs. The case is the property affects on one JVM, but doesn't work on another one.