org.something.services.hello.HelloFault fault =
new org.something.services.hello.HelloFault();
fault.setShortErrorMessage("SomeThingsAreVeryWrong");
fault.setTechImplementationDetails(new NullPointerException().toString());
throw new HelloFaultMessage("Failure", fault);
}
else {
HelloResponse response = new HelloResponse();
response.setGreeting("Hello " + helloRequest.getToWho());
return response;