# Architecture

Up next, the basic PB2Java environment architecture will be explained divided by the following topics:

* WebMapRequests
* WebMapResponse
* Interceptors
* Helpers
* Transaction Manager
* Serializers

The image below shows the PB2Java diagram architecture.

## WebMapRequests <a href="#webmaprequests" id="webmaprequests"></a>

The **WebMapSingleController** is the entry point that processes all the requests following the single controller request mapping.

Every call to the **WebMapSingleController** must have this `{control}/{event}/{uid:.+}` format. For example:

```
http://localhost:8080/cb_next/bnclicked/cb_next%23com.demo.productcatalog.tailwindproductcatalog.w_productitems
```

The start method gets the corresponding control to find the method to execute (getMethodToExecute), and the parameters for the method (getJsonParametersFromRequest), by using the [reflection](https://docs.oracle.com/javase/tutorial/reflect/index.html) process.

```
@WebMAPController
	@RequestMapping(value = "/{control}/{event}/{uid:.+}", method = {RequestMethod.POST}, produces = MediaType.APPLICATION_JSON_VALUE)
	public @ResponseBody IWebMapResponse start(
			@PathVariable String control,
			@PathVariable String event,
			@PathVariable String uid, String requestBody) {

		List
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gapvelocity.ai/webmap/powerbuilder-to-java/post-conversion/architecture.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
