public class MyCommand { public void execute(Map cachmanager) { System.out.println("I am in MyCommand: Before Service Call");
ServiceUtil.getService
("MyService"); System.out.println("I am in MyCommand: After Service Call"); }
public class ServiceUtil { public static String getService(String serviceName){ String serviceObject = "Static Service";
System.out.println("Service invoked is : "+ serviceName); return serviceObject; } }
I want to add Preprocessing beforethe Service Call.