JERSEY-2115: Fixed selection of the resource method annotated with @Template.
	- Refactored validateMethod and handlingMethod of the Invocable.
	PS2: copyright hedaers fixed
	PS3: test fixed
	PS4: review comments incorporated

Change-Id: Ic51b254c9721df485b146084a8bd042a2febc515