private void setUserProfileToTnContext( TnContext tc, UserProfile userProfile, ExecutorContext context) { String loginName = userProfile.getMin(); String carrier = userProfile.getCarrier(); String device = userProfile.getDevice(); String product = userProfile.getPlatform(); String version = userProfile.getVersion(); String userID = userProfile.getUserId(); String applicationName = userProfile.getProduct(); String mapDpi = userProfile.getMapDpi(); String locale = userProfile.getLocale(); String programCode = userProfile.getProgramCode(); tc.addProperty(TnContext.PROP_LOGIN_NAME, loginName); tc.addProperty(TnContext.PROP_CARRIER, carrier); tc.addProperty(TnContext.PROP_DEVICE, device); tc.addProperty(TnContext.PROP_PRODUCT, product); tc.addProperty(TnContext.PROP_VERSION, version); // tc.addProperty("user_family", // Long.toString(ResourceLoader.getInstance().getUserFamily(userProfile))); tc.addProperty("application", applicationName); // "application" should defined in TnContext tc.addProperty("c-server class", Constants.CSERVER_CLASS); tc.addProperty("c-server url", context.getServerUrl()); tc.addProperty("map_dpi", mapDpi); tc.addProperty("locale", locale); tc.addProperty(PROP_PROGRAM_CODE, programCode); tc.addProperty(TnContext.PROP_REQUESTOR, TnContext.TT_REQUESTOR_TNCLIENT); tc.addProperty(PROP_REGION, userProfile.getRegion()); }