private static HSAdminRefreshProtocol createHSProxyWithHSAdminRefreshProtocol( InetSocketAddress hsaddr, Configuration conf, UserGroupInformation ugi) throws IOException { HSAdminRefreshProtocolPB proxy = (HSAdminRefreshProtocolPB) createHSProxy( hsaddr, conf, ugi, HSAdminRefreshProtocolPB.class, 0); return new HSAdminRefreshProtocolClientSideTranslatorPB(proxy); }