[rules-users] Writing rules using java from template