Retrieving custom financial dimension

Is the only way to retrieve a custom financial dimension, is by DimAttribute::findByName(“xxxxxx”) ?