private boolean handleCustomCommand(String name, String params) {
        boolean handled = true;

        Command customCommand = Settings.getInstance().getCommand(name);
        if (customCommand != null) {

            if (++recursionDepth > MAX_RECURSION_DEPTH) {
                InputHandler.showRecursionTooDeepError();
                recursionDepth = 0;
            } else {
                String newInput = customCommand.content.replaceAll("%T", params);
                setText(newInput);
                handleInputText();
            }

        } else {
            recursionDepth = 0;
            handled = false;
        }

        return handled;
    }