protected TypedProperties toTypedProperties(Properties p) {
return TypedProperties.toTypedProperties(p);
}
protected TypedProperties toTypedProperties(String s) {
TypedProperties tp = new TypedProperties();
if (s != null && s.trim().length() > 0) {
InputStream stream = new ByteArrayInputStream(s.getBytes());
try {
tp.load(stream);
} catch (IOException e) {
throw new ConfigurationException("Unable to parse properties string " + s, e);
}
}
return tp;