initializeByHashMap

**Not yet tested**.