I thought it was handled this way with capabitiesGrid too?:

https://github.com/opengeo/gxp/blob/master/src/script/plugins/AddLayers.js#L605

https://github.com/opengeo/gxp/blob/master/src/script/plugins/AddLayers.js#L349