public void onPrepareAddChildResource(final ModelNode address, final boolean isSingleton) {

        _loadMetaData(address, new ResourceData(true), new Outcome<ResourceData>() {
                    @Override
                    public void onFailure(ResourceData context) {
                        Console.error("Failed to load metadata for " + address.asString());
                    }

                    @Override
                    public void onSuccess(ResourceData context) {
                        if (isSingleton && context.description.get(ATTRIBUTES).asList().isEmpty()
                                && context.description.get(OPERATIONS).get(ADD).get(REQUEST_PROPERTIES).asList().isEmpty()) {
                            // no attributes need to be assigned -> skip the next step
                            onAddChildResource(address, new ModelNode());
                        } else {
                            view.showAddDialog(address, isSingleton, context.securityContext, context.description);
                        }
                    }
                }
        );

    }
public void onPrepareAddChildResource ( final ModelNode address , final boolean isSingleton ) { _loadMetaData ( address , new ResourceData ( true ) , new Outcome < ResourceData > ( ) { @ Override public void onFailure ( ResourceData context ) { Console . error ( "Failed to load metadata for " + address . asString ( ) ) ; } @ Override public void onSuccess ( ResourceData context ) { if ( isSingleton && context . description . get ( ATTRIBUTES ) . asList ( ) . isEmpty ( ) && context . description . get ( OPERATIONS ) . get ( ADD ) . get ( REQUEST_PROPERTIES ) . asList ( ) . isEmpty ( ) ) { onAddChildResource ( address , new ModelNode ( ) ) ; } else { view . showAddDialog ( address , isSingleton , context . securityContext , context . description ) ; } } } ) ; }
Add a child resource
@param address
@param isSingleton