private static Properties filterOutAgentProperties(final Properties props) {
    final Properties filteredProps = new Properties();

    for (final Object key : props.keySet()) {
      if (_getPropertyDescription(key.toString()) == null) {
        final String value = props.getProperty(key.toString());
        if (value != null) {
          filteredProps.setProperty(key.toString(), value);
        }
      }
    }

    appendLogFileProperty(filteredProps);

    return filteredProps;
  }
Filter all agent configuration attributes out of the given <code>Properties</code> object.
<p>

@param props the <code>Properties</code> object of filter agent configuration attributes out
       of.

@see AgentConfigImpl#_getPropertyDescription(String)
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentConfigImpl.java