@CanReturnNull
	public static Command getCommandByID(int commandId)
	{
		Command toRet = null;
		ArrayList<Class<?>> availableCommands = (ArrayList<Class<?>>) ReflectionHelper.getCommandClasses();
		for(Class<?> comm:availableCommands)
		{
			try
			{
				Command currComm = (Command)comm.newInstance();
				if(currComm.getCommandID() == commandId)
				{
					toRet = currComm;
					break;
				}
			}
			catch(Exception e)
			{
				Logger.logException("Problem occured while trying to get command by name", e);
			}
		}
		return toRet;
	}