Triggering HoldEvent

how to trigger the hold event and unhold event from the asterisk-java code ?

sathish .