protected void build(final Deployment dep, final DeploymentUnit unit) {
final JBossWebMetaData webMetaData = ASHelper.getJBossWebMetaData(unit);
if (webMetaData != null) {
dep.addAttachment(JBossWebMetaData.class, webMetaData);
}
final WebservicesMetaData wsMetaData = ASHelper.getOptionalAttachment(unit, WSAttachmentKeys.WEBSERVICES_METADATA_KEY);
if (wsMetaData != null) {
dep.addAttachment(WebservicesMetaData.class, wsMetaData);
}
this.log.debug("Creating JAXRPC JSE endpoints meta data model");
for (WebserviceDescriptionMetaData wsd : wsMetaData.getWebserviceDescriptions()) {
for (PortComponentMetaData pcmd : wsd.getPortComponents()) {
final String servletName = pcmd.getServletLink();
this.log.debug("JSE name: " + servletName);
final ServletMetaData servletMD = ASHelper.getServletForName(webMetaData, servletName);
final String servletClass = ASHelper.getEndpointName(servletMD);