code: 	private SessionCreationPolicy createPolicy(String createSession) {
  		if ("ifRequired".equals(createSession)) {
  			return SessionCreationPolicy.IF_REQUIRED;
  		}
  		else if ("always".equals(createSession)) {
  			return SessionCreationPolicy.ALWAYS;
  		}
  		else if ("never".equals(createSession)) {
  			return SessionCreationPolicy.NEVER;
  		}
  		else if ("stateless".equals(createSession)) {
  			return SessionCreationPolicy.STATELESS;
  		}
  
  		throw new IllegalStateException("Cannot convert " + createSession + " to "
  				+ SessionCreationPolicy.class.getName());
  	}
  
  	@SuppressWarnings("rawtypes")
  