public static Lines listEJBs(final String cr) throws Exception {
final ContainerSystem cs = SystemInstance.get().getComponent(ContainerSystem.class);
final Lines lines = new Lines(cr);
lines.add(new Line("Name", "Class", "Interface Type", "Bean Type"));
for (final BeanContext bc : cs.deployments()) {
if (bc.isHidden()) {
continue;
}
lines.add(new Line(bc.getEjbName(), bc.getBeanClass().getName(), getType(bc), componentType(bc.getComponentType())));