if(returnval == null){ switch(((Integer) ((HashMap)data.get(EXTENDEDCASERVICE+type)).get(ExtendedCAService.EXTENDEDCASERVICETYPE)).intValue()){ case ExtendedCAServiceInfo.TYPE_OCSPEXTENDEDSERVICE: returnval = new OCSPCAService((HashMap)data.get(EXTENDEDCASERVICE+type)); break; case ExtendedCAServiceInfo.TYPE_XKMSEXTENDEDSERVICE: returnval = new XKMSCAService((HashMap)data.get(EXTENDEDCASERVICE+type)); break; }
if(returnval == null) { switch(((Integer) ((HashMap)data.get(EXTENDEDCASERVICE+type)).get(ExtendedCAService.EXTENDEDCASERVICETYPE)).intValue()) { case ExtendedCAServiceInfo.TYPE_OCSPEXTENDEDSERVICE: returnval = new OCSPCAService((HashMap)data.get(EXTENDEDCASERVICE+type)); break; case ExtendedCAServiceInfo.TYPE_XKMSEXTENDEDSERVICE: returnval = new XKMSCAService((HashMap)data.get(EXTENDEDCASERVICE+type)); break; case ExtendedCAServiceInfo.TYPE_CMSEXTENDEDSERVICE: returnval = new CmsCAService((HashMap)data.get(EXTENDEDCASERVICE+type)); break; }
    protected ExtendedCAService getExtendedCAService(int type){      ExtendedCAService returnval = null;	  try{	    returnval = (ExtendedCAService) extendedcaservicemap.get(Integer.valueOf(type));	     		          if(returnval == null){		switch(((Integer) ((HashMap)data.get(EXTENDEDCASERVICE+type)).get(ExtendedCAService.EXTENDEDCASERVICETYPE)).intValue()){		  case ExtendedCAServiceInfo.TYPE_OCSPEXTENDEDSERVICE:		    returnval = new OCSPCAService((HashMap)data.get(EXTENDEDCASERVICE+type));		    break;			  case ExtendedCAServiceInfo.TYPE_XKMSEXTENDEDSERVICE:			    returnval = new XKMSCAService((HashMap)data.get(EXTENDEDCASERVICE+type));			    break;			}		extendedcaservicemap.put(Integer.valueOf(type), returnval);        }	  }catch(Exception e){	  	throw new EJBException(e);  	  }          return returnval;    }