private static Map<String, String> determineSystemProperties(ConnectionParameters connectionParameters) {
      Map<String, String> systemProperties = new HashMap<>();

      for (Map.Entry<Object, Object> objectEntry : System.getProperties().entrySet()) {
        systemProperties.put(objectEntry.getKey().toString(),
                             objectEntry.getValue() == null ? null : objectEntry.getValue().toString());
      }

      systemProperties.putAll(
        SystemPropertiesHandler.getSystemProperties(new File(determineRootDir(connectionParameters), "gradle.properties")));
      systemProperties.putAll(
        SystemPropertiesHandler.getSystemProperties(new File(determineRealUserHomeDir(connectionParameters), "gradle.properties")));
      return systemProperties;
    }
private static Map<String, String> determineSystemProperties(ConnectionParameters connectionParameters)