Buggy code:
public static final String TRANSACTION_AS_BASE_64 = "transaction-as-base-64" ; public static final String ADDRESS_MATCH = "address-match" ; public static final String CONNECTION_ID = "connection-id" ; public static final String IP_ADDRESS = "ip-address" ; private final ParametersValidator transactionValidator = new ParametersValidator ( ) ; private final ParametersValidator addressValidator = new ParametersValidator ( ) ; private final ParametersValidator ipAddressValidator = new ParametersValidator ( ) ; private final ParametersValidator optionalIpAddressValidator = new ParametersValidator ( ) ; private final ParametersValidator connectionIdValidator = new ParametersValidator ( ) ; private HornetQServerControlHandler ( ) { } @ Override protected void executeRuntimeStep ( OperationContext context , ModelNode operation ) throws OperationFailedException { } public void register ( final ManagementResourceRegistration registry ) { for ( String attr : HornetQServerControlHandler . ATTRIBUTES ) { registry . registerReadOnlyAttribute ( attr , this , RUNTIME ) ; } registry . registerOperationHandler ( HornetQServerControlHandler . GET_CONNECTORS_AS_JSON , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getNoArgSimpleReplyOperation ( locale , HornetQServerControlHandler . GET_CONNECTORS_AS_JSON , HornetQServerControlHandler . HQ_SERVER , STRING , true ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . RESET_ALL_MESSAGE_COUNTERS , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getDescriptionOnlyOperation ( locale , HornetQServerControlHandler . RESET_ALL_MESSAGE_COUNTERS , HornetQServerControlHandler . HQ_SERVER ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . RESET_ALL_MESSAGE_COUNTER_HISTORIES , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getDescriptionOnlyOperation ( locale , HornetQServerControlHandler . RESET_ALL_MESSAGE_COUNTER_HISTORIES , HornetQServerControlHandler . HQ_SERVER ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . LIST_PREPARED_TRANSACTIONS , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getNoArgSimpleListReplyOperation ( locale , HornetQServerControlHandler . LIST_PREPARED_TRANSACTIONS , HornetQServerControlHandler . HQ_SERVER , STRING , true ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . LIST_PREPARED_TRANSACTION_DETAILS_AS_JSON , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getNoArgSimpleReplyOperation ( locale , HornetQServerControlHandler . LIST_PREPARED_TRANSACTION_DETAILS_AS_JSON , HornetQServerControlHandler . HQ_SERVER , STRING , true ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . LIST_PREPARED_TRANSACTION_DETAILS_AS_HTML , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getNoArgSimpleReplyOperation ( locale , HornetQServerControlHandler . LIST_PREPARED_TRANSACTION_DETAILS_AS_HTML , HornetQServerControlHandler . HQ_SERVER , STRING , true ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . LIST_HEURISTIC_COMMITTED_TRANSACTIONS , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getNoArgSimpleListReplyOperation ( locale , HornetQServerControlHandler . LIST_HEURISTIC_COMMITTED_TRANSACTIONS , HornetQServerControlHandler . HQ_SERVER , STRING , true ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . LIST_HEURISTIC_ROLLED_BACK_TRANSACTIONS , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getNoArgSimpleListReplyOperation ( locale , HornetQServerControlHandler . LIST_HEURISTIC_ROLLED_BACK_TRANSACTIONS , HornetQServerControlHandler . HQ_SERVER , STRING , true ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . COMMIT_PREPARED_TRANSACTION , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getSingleParamSimpleReplyOperation ( locale , HornetQServerControlHandler . COMMIT_PREPARED_TRANSACTION , HornetQServerControlHandler . HQ_SERVER , HornetQServerControlHandler . TRANSACTION_AS_BASE_64 , STRING , true , BOOLEAN , true ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . ROLLBACK_PREPARED_TRANSACTION , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getSingleParamSimpleReplyOperation ( locale , HornetQServerControlHandler . ROLLBACK_PREPARED_TRANSACTION , HornetQServerControlHandler . HQ_SERVER , HornetQServerControlHandler . TRANSACTION_AS_BASE_64 , STRING , true , BOOLEAN , true ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . LIST_REMOTE_ADDRESSES , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { <START_BUG> return MessagingDescriptions . getSingleParamSimpleListReplyOperation ( locale , HornetQServerControlHandler . LIST_REMOTE_ADDRESSES , HornetQServerControlHandler . HQ_SERVER , HornetQServerControlHandler . ADDRESS_MATCH , STRING , true , STRING , true ) ; <END_BUG> } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . CLOSE_CONNECTIONS_FOR_ADDRESS , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getSingleParamSimpleReplyOperation ( locale , HornetQServerControlHandler . CLOSE_CONNECTIONS_FOR_ADDRESS , HornetQServerControlHandler . HQ_SERVER , HornetQServerControlHandler . IP_ADDRESS , STRING , false , BOOLEAN , true ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . LIST_CONNECTION_IDS , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getNoArgSimpleListReplyOperation ( locale , HornetQServerControlHandler . LIST_CONNECTION_IDS , HornetQServerControlHandler . HQ_SERVER , STRING , true ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . LIST_PRODUCERS_INFO_AS_JSON , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getNoArgSimpleReplyOperation ( locale , HornetQServerControlHandler . LIST_PRODUCERS_INFO_AS_JSON , HornetQServerControlHandler . HQ_SERVER , STRING , true ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . LIST_SESSIONS , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getSingleParamSimpleListReplyOperation ( locale , HornetQServerControlHandler . LIST_SESSIONS , HornetQServerControlHandler . HQ_SERVER , HornetQServerControlHandler . CONNECTION_ID , STRING , true , STRING , true ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . GET_ROLES , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getGetRoles ( locale ) ; } } ) ; registry . registerOperationHandler ( HornetQServerControlHandler . GET_ROLES_AS_JSON , this , new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { return MessagingDescriptions . getSingleParamSimpleReplyOperation ( locale , HornetQServerControlHandler . GET_ROLES_AS_JSON , HornetQServerControlHandler . HQ_SERVER , HornetQServerControlHandler . ADDRESS_MATCH , STRING , false , STRING , true ) ; } } ) ;

Fix:
return MessagingDescriptions . getSingleParamSimpleListReplyOperation ( locale , HornetQServerControlHandler . LIST_REMOTE_ADDRESSES , HornetQServerControlHandler . HQ_SERVER , HornetQServerControlHandler . IP_ADDRESS , STRING , true , STRING , true ) ;