ejb3/src/main/java/org/jboss/as/ejb3/subsystem/deployment/AbstractRuntimeMetricsHandler.java
protected static String resolveRuntimeName(final OperationContext context, final PathElement address){
        final ModelNode runtimeName = context.readResourceFromRoot(PathAddress.pathAddress(address),false).getModel()
                .get(ModelDescriptionConstants.RUNTIME_NAME);
            return runtimeName.asString();
    }
protected static String resolveRuntimeName(final OperationContext context, final PathElement address){
        final ModelNode runtimeName = context.readResourceFromRoot(PathAddress.pathAddress(address),false).getModel()
                .get(ModelDescriptionConstants.RUNTIME_NAME);
            return runtimeName.asString();
    }
protected static String resolveRuntimeName ( final OperationContext context , final PathElement address ) { final ModelNode runtimeName = context . readResourceFromRoot ( PathAddress . pathAddress ( address ) , false ) . getModel ( ) . get ( ModelDescriptionConstants . RUNTIME_NAME ) ; return runtimeName . asString ( ) ; }
Resolves runtime name of model resource.
@param context - operation context in which handler is invoked
@param address - deployment address
@return runtime name of module. Value which is returned is never null.
Resolves runtime name of model resource .