code: public static NameSpace getThisNS(Class<?> type) {
          if (!isGeneratedClass(type))
              return null;
          try {
              return getClassStaticThis(type, type.getSimpleName()).namespace;
          } catch (Exception e) {
              if (e.getCause() instanceof UtilTargetError)
                  throw new InterpreterError(e.getCause().getCause().getMessage(),
                          e.getCause().getCause());
              return null;
          }
      }
docs: /*
  Get This namespace from the class static field BSHSTATIC