ubmd.setHome(bmd.getHome());
ubmd.setLocalHome(bmd.getLocalHome());
ubmd.setJndiName(bmd.getJndiName());
ubmd.setLocalJndiName(bmd.getLocalJndiName());
EjbPortComponentMetaData pcmd = bmd.getPortComponent();
if (pcmd != null)
{
ubmd.setPortComponentName(pcmd.getPortComponentName());
ubmd.setPortComponentURI(pcmd.getPortComponentURI());
EJBSecurityMetaData smd = new EJBSecurityMetaData();
smd.setAuthMethod(pcmd.getAuthMethod());
smd.setTransportGuarantee(pcmd.getTransportGuarantee());
smd.setSecureWSDLAccess(pcmd.getSecureWSDLAccess());
ubmd.setSecurityMetaData(smd);
}
}
return ubmd;
}