def METHOD_NAME(m2ee):
    if not appdynamics_used():
        return
    if not _is_javaagent_installed():
        logging.warning(
            "AppDynamics Java Agent isn't installed yet. "
            "Please redeploy your application to complete "
            "AppDynamics Java Agent installation."
        )
        return
    logging.info("AppDynamics Java Agent env. variables are configured. Starting...")
    util.upsert_javaopts(
        m2ee,
        [
            f"-javaagent:{APPDYNAMICS_JAVAAGENT_PATH}",
            f"-Dappagent.install.dir={APPDYNAMICS_INSTALL_PATH}",
        ],
    )
    _set_default_env(m2ee)