java code for check priority or prevent SMS