code: public synchronized static Engine remove(String engineName) {
  		Engine removed = engineMap.remove(engineName);
  		if (removed != null && MAIN_ENGINE_NAME.equals(removed.name)) {
  			Engine.MAIN_ENGINE = null;
  		}
  		return removed;
  	}
docs: Remove engine with engine name managed by JFinal