Porting block: Base class > Helper method to get config, support default value.