final boolean hasPool = componentType.hasPool();
if (COMPONENT_CLASS_NAME.getName().equals(attributeName)) {
context.getResult().set(component.getComponentName());
} else if (SECURITY_DOMAIN.getName().equals(attributeName)) {
final ModelNode result = context.getResult();
EJBSecurityMetaData md = component.getSecurityMetaData();
if (md != null && md.getSecurityDomain() != null) {
result.set(md.getSecurityDomain());
}
} else if (RUN_AS_ROLE.getName().equals(attributeName)) {
final ModelNode result = context.getResult();
EJBSecurityMetaData md = component.getSecurityMetaData();
if (md != null && md.getRunAs() != null) {
result.set(md.getRunAs());
}
} else if (DECLARED_ROLES.getName().equals(attributeName)) {
final ModelNode result = context.getResult();
EJBSecurityMetaData md = component.getSecurityMetaData();
if (md != null) {
result.setEmptyList();
Set<String> roles = md.getDeclaredRoles();
if (roles != null) {
for (String role : roles) {
result.add(role);
}
}