public final class SLPropertiesConverter {
private SLPropertiesConverter() { }
public static ServiceLocatorPropertiesType toServiceLocatorPropertiesType(SLProperties props) {
ObjectFactory of = new ObjectFactory();
ServiceLocatorPropertiesType slPropertiesType = of.createServiceLocatorPropertiesType();
List<EntryType> entries = slPropertiesType.getEntry();
for (String name : props.getPropertyNames()) {
entries.add(createEntry(props, name));
}
return slPropertiesType;