if (context.getType() == OperationContext.Type.SERVER) {
context.addStep(new OperationStepHandler() {
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
ServiceController<?> sc = context.getServiceRegistry(false).getRequiredService(
ConnectorServices.JDBC_DRIVER_REGISTRY_SERVICE);
DriverRegistry driverRegistry = DriverRegistry.class.cast(sc.getValue());
ModelNode result = context.getResult();
for (InstalledDriver driver : driverRegistry.getInstalledDrivers()) {
ModelNode driverNode = new ModelNode();
driverNode.get(DRIVER_NAME.getName()).set(driver.getDriverName());
if (driver.isFromDeployment()) {
driverNode.get(DEPLOYMENT_NAME).set(driver.getDriverName());
driverNode.get(DRIVER_MODULE_NAME.getName());