/** {@inheritDoc} */ public String getValue() throws IllegalStateException, IllegalArgumentException { final SecurityManager sm = System.getSecurityManager(); final String result; if (sm == null) { result = run(); } else { result = AccessController.doPrivileged(this, accessControlContext); } if (result != null) return result; final Object value = defaultValue.getValue(); return value != null ? value.toString() : null; }
/** {@inheritDoc} */ public String getValue() throws IllegalStateException, IllegalArgumentException { final SecurityManager sm = System.getSecurityManager(); final String result; if (sm == null) { result = run(); } else { result = AccessController.doPrivileged(this, accessControlContext); } if (result != null) return result; final Object value = defaultValue.getValue(); return value != null ? value.toString() : null; }