class MqEnvProp implements EnvironmentAware {

	public Map<String, Map<String, Object>> getAllEnv() {  
		Map<String, Map<String, Object>> result = new LinkedHashMap<String, Map<String, Object>>();		
		for (Entry<String, PropertySource<?>> entry : getPropertySources().entrySet()) {
			PropertySource<?> source = entry.getValue();
			String sourceName = entry.getKey();
			if (source instanceof EnumerablePropertySource) {
				EnumerablePropertySource<?> enumerable = (EnumerablePropertySource<?>) source;
				Map<String, Object> properties = new LinkedHashMap<String, Object>();
				for (String name : enumerable.getPropertyNames()) {
					properties.put(name, sanitize(name, enumerable.getProperty(name)));
				}
				result.put(sourceName, properties);				
			}
		}
		return result;
	}

}