Replaced use of source.getId() by source.getSourceId() for Mage Framework.