refactored getMappedEntities method out of Calendar class