private static IPingService getUTOnlyPort(String configName, boolean hashed) {
Bus bus = new SpringBusFactory().createBus(configName);
BusFactory.setDefaultBus(bus);
BusFactory.setThreadDefaultBus(bus);
PingService svc = new PingService(getWsdlLocation(hashed));
final IPingService port =
svc.getPort(
new QName(
"http://WSSec/wssec10",
hashed ? "UserName_IPingService_hashed" : "UserName_IPingService"
),
IPingService.class