GatekeeperMessage gatekeeperMessage = new GatekeeperMessage();
gatekeeperMessage.addApplicationProperties(userInputProperties); // Add User inputs as application properties.
gatekeeperMessage.addApplicationProperties(parametersMap); // Add any Applet/Application parameters as application properties.
// Make the Uploader's identifier available to Gatekeeper for version compatibility checking (if necessary)
gatekeeperMessage.addApplicationProperty(
GatekeeperMessage.PROPERTY_CLIENT_VERSION_ID, UPLOADER_VERSION_ID);
// If a prior failure has occurred, add information about this failure.
if (priorFailureException != null) {
gatekeeperMessage.addApplicationProperty(GatekeeperMessage.PROPERTY_PRIOR_FAILURE_MESSAGE,