if (nextEntry == null || nextEntry.isDirectory()) {
continue;
}
String name = nextEntry.getName();
if (name.equals("META-INF/tobago-theme.xml") || name.equals("META-INF/tobago-config.xml")) {
XmlStreamReader xsr = null;
try {
StringWriter stringWriter = new StringWriter();
xsr = ReaderFactory.newXmlReader(zip.getInputStream(nextEntry));
IOUtil.copy(xsr, stringWriter);
return stringWriter.toString();