Added mechanism to load config from class streams.