Common utilties for APEX code used by Vivens