Please extract System.getProperty("java.security.auth.login.config") to a variable.