public ScalarUdf createInstance(String clazz, String udfName, Context context) {
    // Configs should be same for all the UDF methods within a UDF. Hence taking the first one.
    Config udfConfig = udfMetadata.get(udfName).get(0).getUdfConfig();
    ScalarUdf scalarUdf = ReflectionUtil.getObj(clazz, ScalarUdf.class);
    scalarUdf.init(udfConfig, context);
    return scalarUdf;
  }
The variable that are not shared among all cloned instance of {@link SamzaSqlExecutionContext}
samza-sql/src/main/java/org/apache/samza/sql/data/SamzaSqlExecutionContext.java