adding java example for action creation