@Override
	public Map<String, String> resolve(byte[] data, String encoding) throws InvalidPathException {
		Properties props = new Properties();
		try (Reader reader = new InputStreamReader(new ByteArrayInputStream(data), encoding)) {
			props.load(reader);
		} catch (IOException e) {
			throw new InvalidPathException(e);
		}

		final HashMap<String, String> propMap = new HashMap<>();
		for(String key : props.stringPropertyNames()) {
			propMap.put(key, props.getProperty(key));
		}
		return propMap;
	}
@author <a href="mailto:wangyuxuan@dangdang.com">Yuxuan Wang</a>
config-toolkit/src/main/java/com/dangdang/config/service/file/contenttype/PropertiesContentType.java