UserGroupInformation currentUser = UserGroupInformation.getCurrentUser();
final UserGroupInformation newUgi = UserGroupInformation.createRemoteUser(
currentUser.getUserName());
final InetSocketAddress serviceAddr = NetUtils.createSocketAddrForHost(
application.getHost(), application.getRpcPort());
SliderClusterProtocol realProxy;
log.debug("Connecting to {}", serviceAddr);
if (UserGroupInformation.isSecurityEnabled()) {
org.apache.hadoop.yarn.api.records.Token clientToAMToken =
application.getClientToAMToken();