Added Template Class that will perform the necessary substitution, and modified Slap Rest Impl to use enumeration and different flow.