@Process(actionType = CreateHandler.class)
    public void createHandler(final CreateHandler action, final Dispatcher.Channel channel) {
        operationDelegate.onCreateResource(action.getAddressTemplate(), action.getInstanceName(), action.getNewModel(),
            new CrudOperationDelegate.Callback() {
                @Override
                public void onFailure(AddressTemplate template, String name, Throwable t) {
                    channel.nack(t);
                }

                @Override
                public void onSuccess(AddressTemplate addressTemplate, String name) {
                    lastModifiedInstance = action.getInstanceName();
                    // we must strip the pre-handler-chain suffix to reload a single configuration. 
                    readConfig(action.getAddressTemplate().subTemplate(0, 3), channel);
                }
            });
    }
@ Process ( actionType = CreateHandler . class ) public void createHandler ( final CreateHandler action , final Dispatcher . Channel channel ) { operationDelegate . onCreateResource ( action . getAddressTemplate ( ) , action . getInstanceName ( ) , action . getNewModel ( ) , new CrudOperationDelegate . Callback ( ) { @ Override public void onFailure ( AddressTemplate template , String name , Throwable t ) { channel . nack ( t ) ; } @ Override public void onSuccess ( AddressTemplate addressTemplate , String name ) { lastModifiedInstance = action . getInstanceName ( ) ; readConfig ( action . getAddressTemplate ( ) . subTemplate ( 0 , 3 ) , channel ) ; } } ) ; }
------------------------------------------------------ pre/post handlers