Sample Code for SugarCRM