Created StreamComponentFactory for the common methods of StreamSource and StreamTask