public List<ServiceDeploymentInfo> getServiceDeploymentInfoList() {
        if (serviceDeploymentInfo != null) {
            List<ServiceDeploymentInfo> list = new ArrayList<>(1);
            list.add(serviceDeploymentInfo);
            return list;
        } else {
            return new ArrayList<>(0);
        }
    }
Called at the end to clean all the resources consumed
modules/siddhi-core/src/main/java/io/siddhi/core/stream/output/sink/Sink.java