private void updateClientID(final long newClientID, final long oldClientID) {
		logger.info("registered ClientID is $" + newClientID);

		String titlePreFix = "";
		if (ServerStarter.isClientServer()) {
			titlePreFix = "#### SERVER #### ";
		}

		GameEngine.getInstance().setTitle(titlePreFix + "netproto Client $" + newClientID);
		long offsetEntityId = -((long) Integer.MIN_VALUE);
		entityFactory.setCURRENT_ENTITY_ID(newClientID * 10 * 1000);
		entityFactory.setOWNER_ID(newClientID);

		List<Long> removedIDs = new ArrayList<>();
		Map<Long, Entity> remappedEntities = new HashMap<>();
		for (Entry<Long, Entity> entry : entityMap.entrySet()) {
			Entity e = entry.getValue();
			long key = entry.getKey();

			if (e.getClientId() == oldClientID) {
				e.setClientId(newClientID);
				e.setEntityID(e.getEntityID() + offsetEntityId + entityFactory.getCURRENT_ENTITY_ID());
				entityFactory.setCURRENT_ENTITY_ID(entityFactory.getCURRENT_ENTITY_ID() + 1);

				removedIDs.add(key);
				remappedEntities.put(e.getEntityID(), e);
			}
		}
		entityMap.keySet().removeAll(removedIDs);
		entityMap.putAll(remappedEntities);
	}