private static void setDeepCopySubjectMode(AuthenticationManager authenticationManager) {
        try {
            Class<?>[] argsType = { Boolean.class };
            Method m = authenticationManager.getClass().getMethod("setDeepCopySubjectOption", argsType);
            Object[] deepCopyArgs = { Boolean.TRUE };
            m.invoke(authenticationManager, deepCopyArgs);
        } catch (Exception e) {
            SecurityLogger.ROOT_LOGGER.tracef("Optional setDeepCopySubjectMode failed: %s", e.getLocalizedMessage());
        }
    }
private static void setDeepCopySubjectMode(AuthenticationManager authenticationManager) {
        try {
            Class<?>[] argsType = { Boolean.class };
            Method m = authenticationManager.getClass().getMethod("setDeepCopySubjectOption", argsType);
            Object[] deepCopyArgs = { Boolean.TRUE };
            m.invoke(authenticationManager, deepCopyArgs);
        } catch (Exception e) {
            SecurityLogger.ROOT_LOGGER.tracef("Optional setDeepCopySubjectMode failed: %s", e.getLocalizedMessage());
        }
    }
private static void setDeepCopySubjectMode ( AuthenticationManager authenticationManager ) { try { Class < ? > [ ] argsType = { Boolean . class } ; Method m = authenticationManager . getClass ( ) . getMethod ( "setDeepCopySubjectOption" , argsType ) ; Object [ ] deepCopyArgs = { Boolean . TRUE } ; m . invoke ( authenticationManager , deepCopyArgs ) ; } catch ( Exception e ) { SecurityLogger . ROOT_LOGGER . tracef ( "Optional setDeepCopySubjectMode failed: %s" , e . getLocalizedMessage ( ) ) ; } }
Use reflection to attempt to set the deep copy subject mode on the {@code AuthenticationManager}

@param authenticationManager the {@code AuthenticationManager}
Use reflection to attempt to set the deep copy subject mode on the { @code AuthenticationManager }