question: private URL buildUrl ( String postcode ) { try { StringBuffer urlStr = new StringBuffer ( ) ; urlStr . append ( serverUrl ) ; urlStr . append ( serverUrl . endsWith ( "/" ) ? "" : "/" ) ; urlStr . append ( "/query?op=query&" ) ; urlStr . append ( "cc=" + clientID + "&" ) ; urlStr . append ( "ac=" + accessCode + "&" ) ; urlStr . append ( "DSGID=1&AmbiguityId=1&MaxReturns=250&FieldList=&ParamList=&sAppID=Adempiere&MaxReturns=200" ) ; urlStr . append ( "&Lookfor=" + postcode ) ; URL url = new URL ( urlStr . toString ( ) ) ; return url ; } catch ( MalformedURLException e ) { log . log ( Level . SEVERE , "Lookup URL: " + e . getMessage ( ) ) ; e . printStackTrace ( ) ; } return null ; }
target:  Builds the URL of the appropriate application on the server.