//service
String lang = "en"; //default to english
if (uddiService.lang()!=null) {
lang = uddiService.lang();
}
Name name = new Name();
name.setLang(lang);
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();
description.setLang(lang);
description.setValue(TokenResolver.replaceTokens(uddiService.description(),properties));