service.setBusinessKey(TokenResolver.replaceTokens(uddiService.businessKey(),properties));
service.setServiceKey(TokenResolver.replaceTokens(uddiService.serviceKey(),properties));
if (!"".equals(uddiService.serviceName())) {
name.setValue(TokenResolver.replaceTokens(uddiService.serviceName(),properties));
} else if (webServiceAnnotation!=null && !"".equals(webServiceAnnotation.serviceName())) {
name.setValue(webServiceAnnotation.serviceName());
} else {
name.setValue(clazz.getSimpleName());
}
service.getName().add(name);
Description description = new Description();