code: public static String inferModulePathFromType(TypeDeclaration type) {
          PackageDeclaration pkg = type.getPackage();
          return pkg != null ? '/' + pkg.getQualifiedName().replace('.', '/') : "/";
      }
docs: Infers the Struts module path from the given controller class.