class SimpleEngine {

    public static void submitTopology(Topology topology) {
        SimpleTopology simpleTopology = (SimpleTopology) topology;
        simpleTopology.run();
        // runs until completion
    }

}