*
* @param dep webservice deployment
* @return security roles associated with EJB 21 deployment
*/
public SecurityRolesMetaData getSecurityRoles(final Deployment dep) {
final WebServiceDeployment wsDeployment = WSHelper.getRequiredAttachment(dep, WebServiceDeployment.class);
final SecurityRolesMetaData securityRolesMD = new SecurityRolesMetaData();
final Iterator<WebServiceDeclaration> ejbContainers = wsDeployment.getServiceEndpoints().iterator();
while (ejbContainers.hasNext()) {
final WebServiceDeclaration ejbContainer = ejbContainers.next();
//final RolesAllowed allowedRoles = ejbContainer.getAnnotation(RolesAllowed.class);
final AnnotationInstance allowedRoles = ejbContainer.getAnnotation(ROLES_ALLOWED_DOT_NAME);