if (sect != null)
{
for (String pipename : sect.childrenNames())
{
Section pipe = sect.getChild(pipename);
if (pipe.containsKey(OPT_DATA_STRING))
data.put(pipename, pipe.get(OPT_DATA_STRING).getBytes());
else if (pipe.containsKey(OPT_DATA_PATH))
data.put(pipename, IOUtils.toByteArray(getInputStream(pipe.get(OPT_DATA_PATH), context)));
else
throw new Exception("No data source.");