> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Navigating managerDesc

This page provides a description of how we can navigate the Schema. a field as a hierarchy. Navigating the Schema is currently the best way to add hierarchies and measures. The best way to get a sense of the structure of the ManagerDesc is using the debugger. The techniques employed are generic examples that can be extended, adapted and repeated for any use case that we need.

## Step 1 - finding manager description

Navigate to the method managerDescription() inside of /cvarc-starter/src/main/java/com/activeviam/cvarc/starter/cfg/impl/OlapModelConfig.java and place a break point on the return statement found at the end of the method

<Frame>
  <img src="https://mintcdn.com/activeviam/43bi0pL0XluM4I2q/solutions/cva-risk-capital/6.0/images/managerdesc.png?fit=max&auto=format&n=43bi0pL0XluM4I2q&q=85&s=41c493bcb05cdbb50bdd9d398c68eaf3" alt="Illustrating Manager Description" width="1805" height="760" data-path="solutions/cva-risk-capital/6.0/images/managerdesc.png" />
</Frame>

Step 2 - Finding Elements
Inside of the Variables section of the debugger the tree you want to navigate would be the managerDesc please see two examples below:

### Example 1: dimensions

`managerDesc.getSchemas().get(1).getActivePivotSchemaDescription().getActivePivotInstanceDescriptions().get(0).getActivePivotDescription().getAxisDimensions().getValues()`

<Frame>
  <img src="https://mintcdn.com/activeviam/43bi0pL0XluM4I2q/solutions/cva-risk-capital/6.0/images/example-dimensions.png?fit=max&auto=format&n=43bi0pL0XluM4I2q&q=85&s=2e6824189c2c8da0cd7ad9a66d5da50f" alt="Illustration to Dimensions Example" width="1137" height="826" data-path="solutions/cva-risk-capital/6.0/images/example-dimensions.png" />
</Frame>

all we need to do to add a custom Hierarchy to the SACube is configure a new Heirarchy object and add it to values. For more info [CLICK HERE](./adding-a-hierarchy).

### Example 2: measures

`managerDesc.getSchemas().get(1).getActivePivotSchemaDescription().getActivePivotInstanceDescriptions().get(0).getActivePivotDescription().getMeasuresDescription().getValues()`

<Frame>
  <img src="https://mintcdn.com/activeviam/43bi0pL0XluM4I2q/solutions/cva-risk-capital/6.0/images/example-measures.png?fit=max&auto=format&n=43bi0pL0XluM4I2q&q=85&s=842b818b9b3effd787e02a8165251a87" alt="Illustration to Measures Example" width="1080" height="851" data-path="solutions/cva-risk-capital/6.0/images/example-measures.png" />
</Frame>

all we need to do to add a custom Measure to the SACube is configure a new measure object and add it to values. For more info [CLICK HERE](./adding-a-measure).

*Keep in mind modifications to other Cubes, for instance BA would follow the same pattern, just the selected schema would change as shown below*

<Frame>
  <img src="https://mintcdn.com/activeviam/43bi0pL0XluM4I2q/solutions/cva-risk-capital/6.0/images/schema.png?fit=max&auto=format&n=43bi0pL0XluM4I2q&q=85&s=484884402c0a861095f6843e6dc0cd54" alt="Illustration" width="1127" height="400" data-path="solutions/cva-risk-capital/6.0/images/schema.png" />
</Frame>
