// build the nested layer group, only one layer in it
LayerGroupInfo nested = getCatalog().getFactory().createLayerGroup();
nested.setName(NESTED_LAYER_GROUP);
nested.getLayers().add(getCatalog().getLayerByName(bpLayerId));
builder.calculateLayerGroupBounds(nested);
getCatalog().add(nested);
// build the container layer group
LayerGroupInfo container = getCatalog().getFactory().createLayerGroup();
container.setName(CONTAINER_LAYER_GROUP);