Add general ComponentFactory method for creating component with unknown type.