Buggy code:
@ Path ( "//shop" ) public class ShopExampleResource { private static final Logger log = Logger . getLogger ( ShopExampleResource . class . getName ( ) ) ; @ Inject SignatureBean signatureBean ; @ Inject ConfigVS config ; @ Inject DAOBean dao ; @ Inject ShopExampleBean shopExampleBean ; @ Path ( "//" ) @ GET public Object index ( @ QueryParam ( "uuid" ) String uuid , @ Context ServletContext context , @ Context HttpServletRequest req , @ Context HttpServletResponse resp ) throws Exception { Query query = dao . getEM ( ) . createQuery ( "select<seq2seq4repair_space>g<seq2seq4repair_space>from<seq2seq4repair_space>GroupVS<seq2seq4repair_space>g" ) . setMaxResults ( 1 ) ; List < GroupVS > result = query . getResultList ( ) ; if ( result . isEmpty ( ) ) throw new ExceptionVS ( "To<seq2seq4repair_space>do<seq2seq4repair_space>the<seq2seq4repair_space>test<seq2seq4repair_space>you<seq2seq4repair_space>must<seq2seq4repair_space>enter<seq2seq4repair_space>a<seq2seq4repair_space>GroupVS" ) ; GroupVS groupVS = result . iterator ( ) . next ( ) ; <START_BUG> TransactionVSDto dto = TransactionVSDto . PAYMENT_REQUEST ( groupVS . getName ( ) , GROUP , new BigDecimal ( 4 ) , "EUR" , groupVS . getIBAN ( ) , ( "shop<seq2seq4repair_space>example<seq2seq4repair_space>payment<seq2seq4repair_space>-<seq2seq4repair_space>" + ( new Date ( ) ) ) , WILDTAG ) ; <END_BUG> dto . setPaymentOptions ( Arrays . asList ( FROM_USERVS , CURRENCY_SEND , CURRENCY_CHANGE ) ) ; String sessionID = dto . getUUID ( ) . substring ( 0 , 8 ) ; String paymentInfoServiceURL = ( ( config . getRestURL ( ) ) + "//shop//" ) + sessionID ; shopExampleBean . putTransactionRequest ( sessionID , dto ) ; req . setAttribute ( "paymentInfoServiceURL" , paymentInfoServiceURL ) ; req . setAttribute ( "sessionID" , sessionID ) ; req . setAttribute ( "transactionRequest" , JSON . getMapper ( ) . writeValueAsString ( dto ) ) ; context . getRequestDispatcher ( "//shopExample//index.xhtml" ) . forward ( req , resp ) ; return Response . ok ( ) . build ( ) ; } @ Path ( "//listenTransactionChanges//{shopSessionID}" ) @ GET @ Produces ( MediaType . APPLICATION_JSON ) public Response listenTransactionChanges ( @ PathParam ( "shopSessionID" ) String shopSessionID , @ Context HttpServletRequest req , @ Suspended AsyncResponse asyncResponse ) throws Exception { } @ POST @ Path ( "//{uuid}" ) public Response paymentInfo ( @ PathParam ( "uuid" ) String uuid , byte [ ] postData , @ Context HttpServletRequest req ) throws Exception { } @ Path ( "//{uuid}//payment" ) @ POST public Response payment ( @ PathParam ( "uuid" ) String uuid , byte [ ] postData , @ Context HttpServletRequest req ) throws Exception { } @ Path ( "//{uuid}//payment//currency_change" ) @ POST public Response paymentCurrencyChange ( @ PathParam ( "uuid" ) String uuid , byte [ ] postData , @ Context HttpServletRequest req ) throws Exception { } }

Fix:
TransactionVSDto dto = TransactionVSDto . PAYMENT_REQUEST ( groupVS . getName ( ) , GROUP , new BigDecimal ( 4 ) , "EUR" , groupVS . getIBAN ( ) , ( "shop<seq2seq4repair_space>example<seq2seq4repair_space>payment<seq2seq4repair_space>-<seq2seq4repair_space>" + ( new Date ( ) ) ) , "NITROGENO" ) ;