protected final FluentModelTImpl prepareInlineUpdate(String name, String key) {
        FluentModelTImpl childResource = find(key);
        if (childResource == null
                || childResource.pendingOperation() == ExternalChildResourceImpl.PendingOperation.ToBeCreated) {
            throw new IllegalArgumentException("A child resource ('" + childResourceName + "') with name (key) '" + name + " (" + key + ")' not found");
        }
        if (childResource.pendingOperation() == ExternalChildResourceImpl.PendingOperation.ToBeRemoved) {
            throw new IllegalArgumentException("A child resource ('" + childResourceName + "') with name (key) '" + name + " (" + key + ")' is marked for deletion");
        }
        childResource.setPendingOperation(ExternalChildResourceImpl.PendingOperation.ToBeUpdated);
        return super.prepareForFutureCommitOrPostRun(childResource);
    }
protected final FluentModelTImpl prepareInlineUpdate ( String name , String key ) { FluentModelTImpl childResource = find ( key ) ; if ( childResource == null || childResource . pendingOperation ( ) == ExternalChildResourceImpl . PendingOperation . ToBeCreated ) { throw new IllegalArgumentException ( "A child resource ('" + childResourceName + "') with name (key) '" + name + " (" + key + ")' not found" ) ; } if ( childResource . pendingOperation ( ) == ExternalChildResourceImpl . PendingOperation . ToBeRemoved ) { throw new IllegalArgumentException ( "A child resource ('" + childResourceName + "') with name (key) '" + name + " (" + key + ")' is marked for deletion" ) ; } childResource . setPendingOperation ( ExternalChildResourceImpl . PendingOperation . ToBeUpdated ) ; return super . prepareForFutureCommitOrPostRun ( childResource ) ; }
Prepare for inline update of an external child resource (along with the update of parent resource).

@param name the name of the external child resource
@param key the key
@return the external child resource to be updated