}
InputSource source = new InputSource(new FileInputStream(portletXml));
source.setSystemId(portletXml.toURL().toExternalForm());
Unmarshaller unmarshaller = new Unmarshaller(portletXMLMapping);
unmarshaller.setIgnoreExtraElements(true);
unmarshaller.setEntityResolver(this.resolver);
unmarshaller.setValidation(false);
PortletApplicationDefinitionImpl portletApp =
(PortletApplicationDefinitionImpl)unmarshaller.unmarshal( source );
WebApplicationDefinitionImpl webApp = null;
if (webXml.exists()) {
source = new InputSource(new FileInputStream(webXml));
source.setSystemId(webXml.toURL().toExternalForm());
unmarshaller = new Unmarshaller(webXMLMapping);
unmarshaller.setIgnoreExtraElements(true);
unmarshaller.setEntityResolver(this.resolver);
unmarshaller.setValidation(false);
webApp =
(WebApplicationDefinitionImpl)unmarshaller.unmarshal( source );
Vector structure = new Vector();
structure.add(portletApp);
structure.add("/"+webModule);