Apex : Using an insecure method