What you could do is have multiple apply method on the object?