* @return Metadata information
*/
public ProtocolMetaData parse(Archive<?> deployment) {
ProtocolMetaData protocol = new ProtocolMetaData();
HTTPContext context = new HTTPContext(configuration.getHostName(), 80);
protocol.addContext(context);
if (ArchiveUtil.isWarArchive(deployment)) {
extractWebArchiveContexts(context, (WebArchive) deployment);
} else if (ArchiveUtil.isEarArchive(deployment)) {
extractEnterpriseArchiveContexts(context, (EnterpriseArchive) deployment);