code: public String generateFilename(IScope scope, String name, String extension, GenerationType type) {
          String result = getStreamDirectory(scope) + name;
          if (extension != null && !extension.equals("")) {
              result += extension;
          }
          return result;
      }
docs: {@inheritDoc}