def _processLGkwargs(className, **LGkwargs):
    """
    Pre-processes the launch_gateway arguments.

    Arguments:
    ----------
    className : str
        name of the class that made the call
    LGkwargs : dict, optional
        dictionary with a user set arguments

    Returns:
    ----------
    LGkwargs: dict
        pre-processed launch_gateway arguments dictionary
    """
    _SKIPPED_ARGS = {
        'jarpath': ("Warning: Skipping the 'jarpath' parameter of the launch_gateway method."
                   " The gateway 'jarpath' can only be changed in the JPSGateway constructor"
                   " via its 'jarPath' argument.")
                   if className == 'JPSGateway' else \
                   ("Warning: Skipping the 'jarpath' argument. An installed resource jarpath"
                    " can not be changed. Use the base 'JPSGateway' class if you wish to acces"
                    " an uninstalled java resource (not recommended) or use the 'jpsrm' command"
                    " line resource manager to install the new resource (recommended).")
                   ,
        'return_proc':  ("Warning: Skipping the 'return_process' parameter of the launch_gateway"
                         " method. The parameter must always be True and cannot be changed by a user.")
                 }

    # launch_gateway defaults
    _LG_DEF = {'die_on_exit': True,
               'return_proc': True,
               'enable_auth': False}

    for arg, arg_val in _SKIPPED_ARGS.items():
        if arg in LGkwargs:
            LGkwargs.pop(arg)
            print(arg_val)

    # add the defaults to the LGkwargs, defaults are added if missing
    # so they do not overwrite any present LGkwargs values
    LGkwargs = {**_LG_DEF, **LGkwargs}
    return LGkwargs