ServiceConfiguration serviceConfig =  EjbcaJSFHelper.getBean().getServiceSession().getServiceConfiguration(getAdmin(), id); String serviceName = EjbcaJSFHelper.getBean().getServiceSession().getServiceName(getAdmin(), id);
ServiceConfiguration serviceConfig =  EjbcaJSFHelper.getBean().getServiceSession().getServiceConfiguration(getAdmin(), id.intValue()); String serviceName = EjbcaJSFHelper.getBean().getServiceSession().getServiceName(getAdmin(), id.intValue());
	public List getAvailableServices() {		List availableServices = new ArrayList();	    Collection availableServicesIds = EjbcaJSFHelper.getBean().getServiceSession().getAuthorizedServiceIds(getAdmin());	    Iterator iter = availableServicesIds.iterator();	    while(iter.hasNext()){	    	Integer id = (Integer) iter.next();	    	ServiceConfiguration serviceConfig =  EjbcaJSFHelper.getBean().getServiceSession().getServiceConfiguration(getAdmin(), id);	    	String serviceName = EjbcaJSFHelper.getBean().getServiceSession().getServiceName(getAdmin(), id); 	    	if(serviceConfig.isActive()){	    		availableServices.add(new SortableSelectItem(serviceName, serviceName+ " (" + EjbcaJSFHelper.getBean().getText().get("ACTIVE") + ")"));	    	}else{	    		availableServices.add(new SortableSelectItem(serviceName, serviceName + " (" + EjbcaJSFHelper.getBean().getText().get("INACTIVE") + ")"));	    	}	    }	    	    Collections.sort(availableServices);	 		return availableServices;	}