Added MapFactory utility class.