}
public static Service getService(ServiceInfo serviceInfo, LifeCycleManager lifeCycleManager)
throws JAXRException
{
Service service = new ServiceImpl(lifeCycleManager);
String keystr = serviceInfo.getServiceKey();
if (keystr != null)
{
service.setKey(lifeCycleManager.createKey(keystr));
}
Name n = null;
if (serviceInfo.getName().size()>0) n = serviceInfo.getName().get(0);
if (n != null) {
String name = n.getValue();
service.setName(lifeCycleManager.createInternationalString(getLocale(n.getLang()), name));
}
return service;
}