code: public static String getSystemPropertySafe(String name, String defaultValue) {
          try {
              return System.getProperty(name, defaultValue);
          } catch (SecurityException | NullPointerException | IllegalArgumentException ignore) {
              // suppress exception
          }
          return defaultValue;
      }
docs: Retrieves a System property, or returns some default value if:
  <ul>
  <li>the property isn't found</li>
  <li>the property name is null or empty</li>
  <li>if a security manager exists and its checkPropertyAccess method doesn't allow access to the specified system property.</li>
  </ul>
  
  @param name         the name of the system property.
  @param defaultValue a default value.
  @return value of the system property or the default value