@Override
	public BufferFactory createBufferFactory(Map<String, Object> map) {
		if(map == null)
			throw new IllegalArgumentException("map cannot be null");

		Object direct = map.get(FactoryCreator.KEY_IS_DIRECT);
		boolean isDirect = false;
		if(direct != null && direct instanceof Boolean)
			isDirect = (Boolean)direct;
		
		DefaultByteBufferFactory bufFactory = new DefaultByteBufferFactory();
		bufFactory.setDirect(isDirect);
		return bufFactory;
	}