presto-main/src/main/java/io/prestosql/operator/TableWriterOperator.java/TableWriterOperator/createPageSink
class TableWriterOperator:        private ConnectorPageSink createPageSink()
        {
            if (target instanceof CreateTarget) {
                return pageSinkManager.createPageSink(session, ((CreateTarget) target).getHandle());
            }
            if (target instanceof InsertTarget) {
                return pageSinkManager.createPageSink(session, ((InsertTarget) target).getHandle());
            }
            throw new UnsupportedOperationException("Unhandled target type: " + target.getClass().getName());
        }