* @param dep webservice deployment
* @return universal JSE meta data model
*/
JSEArchiveMetaData create(final Deployment dep)
{
final JBossWebMetaData jbossWebMD = WSHelper.getRequiredAttachment(dep, JBossWebMetaData.class);
final JSEArchiveMetaData jseArchiveMD = new JSEArchiveMetaData();
// set context root
final String contextRoot = this.getContextRoot(dep, jbossWebMD);
jseArchiveMD.setContextRoot(contextRoot);
// set servlet url patterns mappings
final Map<String, String> servletMappings = this.getServletUrlPatternsMappings(jbossWebMD);
jseArchiveMD.setServletMappings(servletMappings);
// set servlet class names mappings
final Map<String, String> servletClassNamesMappings = this.getServletClassMappings(jbossWebMD);
jseArchiveMD.setServletClassNames(servletClassNamesMappings);
// set security domain
final String securityDomain = jbossWebMD.getSecurityDomain();
jseArchiveMD.setSecurityDomain(securityDomain);
// set wsdl location resolver
final PublishLocationAdapter resolver = new PublishLocationAdapterImpl(jbossWebMD.getWebserviceDescriptions());
jseArchiveMD.setPublishLocationAdapter(resolver);
// set security meta data
final List<JSESecurityMetaData> jseSecurityMDs = this.getSecurityMetaData(jbossWebMD.getSecurityConstraints());
jseArchiveMD.setSecurityMetaData(jseSecurityMDs);
// set config name and file
this.setConfigNameAndFile(jseArchiveMD, jbossWebMD);