We currently have the following compound if statement...
if ((billingRemoteService == null)
|| billingRemoteService.getServiceHeader() == null
|| !\"
You could mix Groovy into your JVM-based application - the line will get considerably simpler then:
def result = billingRemoteService?.
serviceBody?.
serviceResponse?.
customersList?.
customersList[0];
if ('00' != billingRemoteService?.serviceHeader?.statusCode ||
result?.
billAccountInfo?.
getEcpdId == null)
throw new WebServicesException
...