I have two services defined as below
public class RuleService{ public ServiceError validate(MyRuleInput input){...} public void persist(MyRuleInput input){...