formatting apex code, use apexcode to set salesforce key mappings instead of always setting them