try {
ContainerIndex index = ContainerIndex.getInstance();
int length = index.length();
System.out.println("number of continers "+length);
for(int i = 0;i<length;i++){
EJBContainer contianer = index.getContainer(i);
if(contianer!= null){
String name = contianer.getEJBName();
System.out.println("found the ejb "+name);
log.debug("found the ejb "+name);
if(ejbName.equals(name)){
EJBHome statelessHome = contianer.getEJBHome();
Object stateless = statelessHome.getClass().getMethod("create", null).invoke(statelessHome, null);
Method[] methods = stateless.getClass().getMethods();
for(int j = 0;j< methods.length;j++){
if(methods[j].getName().equals(methodName)){
try{