Buggy code:
public class RequestServlet extends HttpServlet { public static final String PARAMETER_NAME_USER_ID = "USER_ID" ; public static final String PARAMETER_NAME_USER_PASSWORD_HASHED = "USER_PASSWORD_HASHED" ; public static final String PARAMETER_NAME_PRODUCTION_URL_QUERY = "PRODUCTION_URL_QUERY" ; public static final String KEY_FUEL_TYPE = "fuelType" ; public static final String DEFAULT_FUEL_TYPE = "1" ; public static final Logger log = Logger . getLogger ( "cyprusfuelguide" ) ; private static String postRequestPayload = null ; private static String userId = null ; private static String userPasswordHashed = null ; private static String productionUrlQuery = null ; protected void doGet ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { response . setContentType ( "text//plain;<seq2seq4repair_space>charset=utf-8" ) ; final PrintWriter printWriter = response . getWriter ( ) ; final String magic = request . getParameter ( "magic" ) ; if ( ( ( magic == null ) || ( magic . isEmpty ( ) ) ) || ( ! ( ParameterFactory . isMagic ( magic ) ) ) ) { RequestServlet . log . severe ( ( "Empty<seq2seq4repair_space>or<seq2seq4repair_space>invalid<seq2seq4repair_space>magic:<seq2seq4repair_space>" + magic ) ) ; printWriter . println ( ( ( "{<seq2seq4repair_space>\"result\":<seq2seq4repair_space>\"error\",<seq2seq4repair_space>\"message\":<seq2seq4repair_space>\"Empty<seq2seq4repair_space>or<seq2seq4repair_space>invalid<seq2seq4repair_space>magic:<seq2seq4repair_space>" + magic ) + "\"<seq2seq4repair_space>}" ) ) ; return ; } final boolean debug = ( request . getParameter ( "debug" ) ) != null ; final boolean syncStations = "true" . equals ( request . getParameter ( "syncStations" ) ) ; final String fuelType = ( ( request . getParameter ( RequestServlet . KEY_FUEL_TYPE ) ) == null ) ? RequestServlet . DEFAULT_FUEL_TYPE : request . getParameter ( RequestServlet . KEY_FUEL_TYPE ) ; if ( ( RequestServlet . userId ) == null ) { RequestServlet . userId = getParameter ( RequestServlet . PARAMETER_NAME_USER_ID ) ; } if ( ( RequestServlet . userPasswordHashed ) == null ) { RequestServlet . userPasswordHashed = getParameter ( RequestServlet . PARAMETER_NAME_USER_PASSWORD_HASHED ) ; } if ( ( RequestServlet . productionUrlQuery ) == null ) { RequestServlet . productionUrlQuery = getParameter ( RequestServlet . PARAMETER_NAME_PRODUCTION_URL_QUERY ) ; } try { final String correlationID = doRequest ( RequestServlet . productionUrlQuery , RequestServlet . userId , RequestServlet . userPasswordHashed , fuelType ) ; final Queue queue = QueueFactory . getDefaultQueue ( ) ; <START_BUG> TaskOptions taskOptions = Builder . withUrl ( "//sync//poll" ) . param ( "magic" , magic ) . param ( "correlationId" , correlationID ) . param ( "fuelType" , fuelType ) . param ( "syncStations" , Boolean . toString ( syncStations ) ) . countdownMillis ( 30000 ) . method ( GET ) ; <END_BUG> queue . add ( taskOptions ) ; printWriter . println ( ( ( ( ( ( ( ( ( ( "{<seq2seq4repair_space>\"result\":<seq2seq4repair_space>\"ok\",<seq2seq4repair_space>" + "\"debug\":<seq2seq4repair_space>" ) + debug ) + ",<seq2seq4repair_space>" ) + "\"request-xml\":<seq2seq4repair_space>\"" ) + ( RequestServlet . postRequestPayload ) ) + "\",<seq2seq4repair_space>" ) + "\"correlation-id\":<seq2seq4repair_space>\"" ) + correlationID ) + "\"<seq2seq4repair_space>}" ) ) ; } catch ( IOException ioe ) { printWriter . println ( ( ( "{<seq2seq4repair_space>\"result\":<seq2seq4repair_space>\"Error\",<seq2seq4repair_space>\"message\":<seq2seq4repair_space>\"" + ( ioe . getMessage ( ) ) ) + "\"<seq2seq4repair_space>}" ) ) ; } } private String doRequest ( final String urlRequest , final String userId , final String userPasswordHashed , final String fuelType ) throws IOException { } public static final String POST_REQUEST_PAYLOAD = "<GovTalkMessage<seq2seq4repair_space>xmlns=\"http:////www.govtalk.gov.uk//CM//envelope\">\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<seq2seq4repair_space><EnvelopeVersion>2.0<//EnvelopeVersion>\n" + "<seq2seq4repair_space><Header>\n" ) + "<seq2seq4repair_space><MessageDetails>\n" ) + "<seq2seq4repair_space><Class>PBL_MCIT_Petrol_PricesMob<//Class>\n" ) + "<seq2seq4repair_space><Qualifier>request<//Qualifier>\n" ) + "<seq2seq4repair_space><Function>submit<//Function>\n" ) + "<seq2seq4repair_space><CorrelationID><//CorrelationID>\n" ) + "<seq2seq4repair_space><//MessageDetails>\n" ) + "<seq2seq4repair_space><SenderDetails>\n" ) + "<seq2seq4repair_space><IDAuthentication>\n" ) + "<seq2seq4repair_space><SenderID><//SenderID>\n" ) + "<seq2seq4repair_space><Authentication>\n" ) + "<seq2seq4repair_space><Method>hash<//Method>\n" ) + "<seq2seq4repair_space><Value><//Value>\n" ) + "<seq2seq4repair_space><//Authentication>\n" ) + "<seq2seq4repair_space><//IDAuthentication>\n" ) + "<seq2seq4repair_space><//SenderDetails>\n" ) + "<seq2seq4repair_space><//Header>\n" ) + "<seq2seq4repair_space><Body>\n" ) + "<seq2seq4repair_space><Message<seq2seq4repair_space>xmlns=\"http:////gateway.gov//schema//common//v1\">\n" ) + "<seq2seq4repair_space><Header>\n" ) + "<seq2seq4repair_space><Vendor>Ariadni<seq2seq4repair_space>Team<//Vendor>\n" ) + "<seq2seq4repair_space><//Header>\n" ) + "<seq2seq4repair_space><Body>\n" ) + "<seq2seq4repair_space><!--<seq2seq4repair_space>Transaction<seq2seq4repair_space>Body<seq2seq4repair_space>XML<seq2seq4repair_space>Start<seq2seq4repair_space>-->\n" ) + "<seq2seq4repair_space><PetroleumPriceRequestMob<seq2seq4repair_space>xmlns=\"http:////gateway.gov//schema//mcit//v1\"<seq2seq4repair_space>xmlns:com=\"http:////gateway.gov//schema//common//v1\"<seq2seq4repair_space>xmlns:xsi=\"http:////www.w3.org//2001//XMLSchema-instance\">\n" ) + "<seq2seq4repair_space><PetroleumType><//PetroleumType>\n" ) + "<seq2seq4repair_space><//PetroleumPriceRequestMob>\n" ) + "<seq2seq4repair_space><!--<seq2seq4repair_space>Transaction<seq2seq4repair_space>Body<seq2seq4repair_space>XML<seq2seq4repair_space>End<seq2seq4repair_space>-->\n" ) + "<seq2seq4repair_space><//Body>\n" ) + "<seq2seq4repair_space><//Message>\n" ) + "<seq2seq4repair_space><//Body>\n" ) + "<//GovTalkMessage>\n" ) ; private String getParameter ( final String parameterKey ) { } No newline ; at end ; of file ; }

Fix:
TaskOptions taskOptions = Builder . withUrl ( "//sync//poll" ) . param ( "magic" , magic ) . param ( "correlationId" , correlationID ) . param ( "fuelType" , fuelType ) . param ( "syncStations" , Boolean . toString ( syncStations ) ) . countdownMillis ( 60000 ) . method ( GET ) ;