* @param client
	 * @return
	 */
	public boolean exitHandler(final String cmd, final Client client) {
		final Player player = getPlayer(client);           // get current player
		final Room room = getRoom( player.getLocation() ); // get current room

		debug("Entering exit handler (String)...");

		for (final Exit exit : room.getExits()) {
			// for doors
			final String[] doorNames = exit.getName().split("/");

			// checks for doorness and at the same time whether the given command is a valid exit name for the door
			//boolean door = (doorNames.length == 2) ? ((doorNames[0].equals(cmd) || doorNames[1].equals(cmd)) ? true : false) : false;
			//boolean door_alias = (doorNames.length == 2) ? (exit.hasAlias(doorNames[0] + "|" + cmd) || exit.hasAlias(doorNames[1] + "|" + cmd)) : false;
			
			boolean door = false;
			boolean door_alias = false;
			
			if ( doorNames.length == 2 ) {
				// door
				if ( doorNames[0].equals(cmd) || doorNames[1].equals(cmd) ) door = true;
				
				// door_alias
				if ( exit.hasAlias(doorNames[0] + "|" + cmd) || exit.hasAlias(doorNames[1] + "|" + cmd) ) door_alias = true;
			}

			debug("Command: " + cmd);
			debug("door [B]: " + door);
			debug("door_alias [B]: " + door_alias);

			if (exit.getExitType() == ExitType.DOOR) {
				debug("\'" + doorNames[0] + "|" + cmd + "\'");
				debug("\'" + doorNames[1] + "|" + cmd + "\'");
			}

			debug("Aliases: " + exit.getAliases());
			
			final String exitName = exit.getName();

			if (exitName.equals(cmd) || exitName.equals( aliases.get(cmd) ) || exit.getAliases().contains(cmd) || door || door_alias) {
				return exitHandler(exit, client);
			}
		}

		// tell us we are leaving the exit handler
		debug("Exiting exit handler...");

		return false;
	}