private boolean ajoutBean(boolean isSingleton) throws EMException, BeanException
	{
		boolean ajout = true;

		List<Object> liste = EJBContainer.getInstance().getMapManageInstances().get(classBean);
		if (liste == null)
		{	
			//rechercher les methodes postConstruct et preDestroy
			try {
				EJBContainer.getInstance().rechercheAnnotationsCycleVieEJB(classBean);
			} catch (BeanException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			liste = new ArrayList<>();
		}
		try {
			if (!isSingleton || isSingleton && liste.size() == 0)
			{
				bean = classBean.newInstance();
				liste.add(bean);
				EJBContainer.getInstance().getMapManageInstances().put(classBean, liste);
			}
			else
			{
				bean = liste.get(0);
				ajout = false;
			}
		} catch (InstantiationException | IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		if (ajout)
		{
			System.out.println("Creation d'une nouvelle instance de l'EJB " + classBean);
			//l'EJB vient d'etre cree, appel des methodes postConstruct
			try {
				EJBContainer.getInstance().appelMethodesPostConstruct(bean);
			} catch (BeanException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			EJBContainer.getInstance().inject(bean);
		}
		
		return ajout;
	}