In D365fno
DimensionDefault defaultDimension = LedgerDimensionFacade::getDefaultDimensionFromLedgerDimension(ledgerJournalTrans.LedgerDimension);
in Ax 2012
defaultDimension = DimensionStorage::getDefaultDimensionFromLedgerDimension(_ledgerDimension);