@@ -0,0 +1,1865 @@
+/*%0A * ********************************************************************************************************************%0A *  %3Cp/%3E%0A *  BACKENDLESS.COM CONFIDENTIAL%0A *  %3Cp/%3E%0A *  ********************************************************************************************************************%0A *  %3Cp/%3E%0A *  Copyright 2012 BACKENDLESS.COM. All Rights Reserved.%0A *  %3Cp/%3E%0A *  NOTICE: All information contained herein is, and remains the property of Backendless.com and its suppliers,%0A *  if any. The intellectual and technical concepts contained herein are proprietary to Backendless.com and its%0A *  suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret%0A *  or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden%0A *  unless prior written permission is obtained from Backendless.com.%0A *  %3Cp/%3E%0A *  ********************************************************************************************************************%0A */%0A%0Apackage com.backendless.servercode;%0A%0Aimport com.backendless.commons.DeviceType;%0A%0Aimport java.util.List;%0A%0A/**%0A * Created by oleg on 21.07.15.%0A */%0Apublic class InvocationContext%0A%7B%0A  private static RunnerContext runnerContext;%0A%0A  public static RunnerContext getRunnerContext()%0A  %7B%0A    return runnerContext;%0A  %7D%0A%0A  public static void setRunnerContext( RunnerContext runnerContext )%0A  %7B%0A    InvocationContext.runnerContext = runnerContext;%0A  %7D%0A%0A  public static void setRunnerContext(String appId, String userId, List%3CString%3E userRoles, DeviceType deviceType)%0A  %7B%0A    RunnerContext runnerContext = new RunnerContext();%0A    runnerContext.setAppId( appId );%0A    runnerContext.setUserId( userId );%0A    runnerContext.setUserRole( userRoles );%0A    runnerContext.setDeviceType( deviceType );%0A    InvocationContext.runnerContext = runnerContext;%0A  %7D%0A%7D%0A

Add InvocationContext for HostedServices