DocumentBuilder db = null;
try {
db = dbf.newDocumentBuilder();
} catch (ParserConfigurationException e) {
PlutoAdminLogger.logError(CLASS_NAME, METHOD_NAME, e);
throw new PlutoAdminException(e);
}
OutputStreamWriter errorWriter =
new OutputStreamWriter(System.err, PlutoAdminConstants.ENCODING);
db.setErrorHandler(
new MyErrorHandler(new PrintWriter(errorWriter, true)));
Document doc = null;
try {
doc = db.parse(ios);
} catch (SAXException e) {
PlutoAdminLogger.logError(CLASS_NAME, METHOD_NAME, e);
throw new PlutoAdminException(e);
} catch (IOException e) {
PlutoAdminLogger.logError(CLASS_NAME, METHOD_NAME, e);
throw new PlutoAdminException(e);
}
NodeList portletNames = doc.getElementsByTagName("portlet-name");
if (null != portletNames)
{