/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.facebook.presto.server;

import com.facebook.presto.spi.security.Identity;
import com.facebook.presto.transaction.TransactionId;

import java.util.Map;
import java.util.Optional;
import java.util.Set;

public interface SessionContext
{
    Identity getIdentity();

    String getCatalog();

    String getSchema();

    String getSource();

    String getRemoteUserAddress();

    String getUserAgent();

    String getClientInfo();

    Set<String> getClientTags();

    String getTimeZoneId();

    String getLanguage();

    Map<String, String> getSystemProperties();

    Map<String, Map<String, String>> getCatalogSessionProperties();

    Map<String, String> getPreparedStatements();

    Optional<TransactionId> getTransactionId();

    boolean supportClientTransaction();
}

@@ -697,16 +697,51 @@
 ionId;%0A%0A
+import javax.annotation.Nullable;%0A%0A
 import j
@@ -754,16 +754,16 @@
 il.Map;%0A
-
 import j
@@ -863,24 +863,38 @@
 dentity();%0A%0A
+    @Nullable%0A
     String g
@@ -903,24 +903,38 @@
 Catalog();%0A%0A
+    @Nullable%0A
     String g
@@ -942,24 +942,38 @@
 tSchema();%0A%0A
+    @Nullable%0A
     String g
@@ -1017,24 +1017,38 @@
 Address();%0A%0A
+    @Nullable%0A
     String g
@@ -1059,24 +1059,38 @@
 erAgent();%0A%0A
+    @Nullable%0A
     String g
@@ -1136,24 +1136,38 @@
 entTags();%0A%0A
+    @Nullable%0A
     String g
@@ -1179,24 +1179,38 @@
 eZoneId();%0A%0A
+    @Nullable%0A
     String g

Add nullable annotations for SessionContext