I think you can move this to the only place it is used (the getParameters(code) method) unless it is used elsewhere.