{
try{
if(type.equals(AutoDeployConstants.EAR_EXTENSION)) {
ApplicationManager amgr =
ManagerFactory.getApplicationManager();
return amgr.isRegistered(name);
}else if(type.equals(AutoDeployConstants.JAR_EXTENSION)) {
StandAloneEJBModulesManager emgr =
ManagerFactory.getSAEJBModulesManager();