private SiddhiApp removeSourceSinkAndStoreAnnotations(SiddhiApp siddhiApp) {
        for (StreamDefinition streamDefinition : siddhiApp.getStreamDefinitionMap().values()) {
            streamDefinition.getAnnotations().removeIf(annotation -> (
                    annotation.getName().equalsIgnoreCase(SiddhiConstants.ANNOTATION_SOURCE) ||
                            annotation.getName().equalsIgnoreCase(SiddhiConstants.ANNOTATION_SINK))
                    && !annotation.getElement(SiddhiConstants.ANNOTATION_ELEMENT_TYPE).equalsIgnoreCase("inMemory"));
        }
        for (TableDefinition tableDefinition : siddhiApp.getTableDefinitionMap().values()) {
            tableDefinition.getAnnotations().removeIf(annotation ->
                    annotation.getName().equalsIgnoreCase(SiddhiConstants.ANNOTATION_STORE));
        }
        return siddhiApp;
    }
Create a SiddhiApp Sandbox Runtime that runs without their Sources Sinks and Stores.

@param siddhiApp SiddhiApp
@return SiddhiAppRuntime without its Sources Sinks and Stores.
modules/siddhi-core/src/main/java/io/siddhi/core/SiddhiManager.java