code: public static BshMethod getMethod(NameSpace ns, String name, Class<?>[] sig) {
          if (null == ns)
              return null;
          try {
              return ns.getMethod(name, sig, true);
          } catch (Exception e) {
              return null;
          }
      }
docs: /*
  Get method from namespace