Basic container factory implementation