Factory map and factory functions

as in CIMFactory.cpp, how to modify according to whitelist?