private boolean checkJtsEnabled ( final OperationContext context ) { try { final ModelNode jtsNode = context . readResourceFromRoot ( PathAddress . pathAddress ( "subsystem" , "transactions" ) , false ) . getModel ( ) . get ( "jts" ) ; return jtsNode . isDefined ( ) ? jtsNode . asBoolean ( ) : false ; } catch ( NoSuchResourceException ex ) { return false ; } }
not necessary .