code: public boolean canImport(String label, String namespace) {
          if (!exported.containsKey(label)) {
              return false;
          }
          Set<String> scopes = exportScopes.get(label);
          for (String scope : scopes) {
              if (scope.equals(namespace)) {
                  return true;
              } else if (scope.endsWith("*") && namespace.startsWith(scope.substring(0, scope.length() - 1))) {
                  return true;
              }
          }
          return false;
      }
docs: Indicates whether a namespace can import an exported variable or not.
  To be imported, the label must point to an exported variable, with no import restrictions
  or with a given namespace compatible with the restrictions.
  
  @param label     the label to import
  @param namespace the namespace of the script asking for the variable
  @return {@code true} if the variable can be imported. {@code false} otherwise}