code: public static Variable getVariable(NameSpace ns, String name) {
          if (null == ns)
              return null;
          try {
              return ns.getVariableImpl(name, false);
          } catch (Exception e) {
              return null;
          }
      }
docs: /*
  Get variable from namespace