Removed compilation errors
Object map should be passed in
Will give ReferenceManager an empty map right now.
Ripple effects from making factory responsible of creating
referenceManagers