code: public static Properties filteredSystemProperties(final Properties existing, final boolean withMaven) {
          final Properties properties = new Properties();
  
          System.getProperties().stringPropertyNames().forEach(key -> {
              if (key.startsWith("jboss.") ||
                      key.startsWith("swarm.") ||
                      key.startsWith("wildfly.") ||
                      (withMaven && key.startsWith("maven.")) ||
                      existing.containsKey(key)) {
                  properties.put(key, System.getProperty(key));
              }
          });
  
          return properties;
      }
docs: Copies any jboss.*, swarm.*, or wildfly.* (and optionally maven.*) sysprops from System,
  along with anything that shadows a specified property.
  
  @return only the filtered properties, existing is unchanged