Buggy code:
@ SuppressWarnings ( "unchecked" ) @ Override public CloudInfo getInfo ( ) { } @ Override public void createSpace ( String spaceName ) { } @ Override public CloudSpace getSpace ( String spaceName ) { } @ Override public void deleteSpace ( String spaceName ) { } private UUID doCreateSpace ( String spaceName , UUID orgGuid ) { } private UUID getSpaceGuid ( String spaceName , UUID orgGuid ) { } private UUID getSpaceGuid ( String orgName , String spaceName ) { } private void doDeleteSpace ( UUID spaceGuid ) { } @ Override public List < CloudSpace > getSpaces ( ) { } @ Override public List < UUID > getSpaceManagers ( String orgName , String spaceName ) { } @ Override public List < UUID > getSpaceDevelopers ( String orgName , String spaceName ) { } @ Override public List < UUID > getSpaceAuditors ( String orgName , String spaceName ) { } private List < UUID > getSpaceUserGuids ( String orgName , String spaceName , String urlPath ) { } @ Override public void associateManagerWithSpace ( String orgName , String spaceName , String userGuid ) { } @ Override public void associateDeveloperWithSpace ( String orgName , String spaceName , String userGuid ) { } @ Override public void associateAuditorWithSpace ( String orgName , String spaceName , String userGuid ) { } private void associateRoleWithSpace ( String orgName , String spaceName , String userGuid , String urlPath ) { } private String getCurrentUserId ( ) { } @ Override public Map < String , CloudUser > getOrganizationUsers ( String orgName ) { } @ Override public List < CloudOrganization > getOrganizations ( ) { } @ Override public OAuth2AccessToken login ( ) { } @ Override public void logout ( ) { } @ Override public void register ( String email , String password ) { } @ Override public void updatePassword ( CloudCredentials credentials , String newPassword ) { } @ Override public void unregister ( ) { } @ Override public List < CloudService > getServices ( ) { } @ Override public void createService ( CloudService service ) { } private CloudServicePlan findPlanForService ( CloudService service ) { } @ Override public void createUserProvidedService ( CloudService service , Map < String , Object > credentials ) { } @ Override public void createUserProvidedService ( CloudService service , Map < String , Object > credentials , String syslogDrainUrl ) { } private void createUserProvidedServiceDelegate ( CloudService service , Map < String , Object > credentials , String syslogDrainUrl ) { } @ Override public CloudService getService ( String serviceName ) { } @ Override public CloudServiceInstance getServiceInstance ( String serviceName ) { } private Map < String , Object > doGetServiceInstance ( String serviceName , int inlineDepth ) { } @ Override public void deleteService ( String serviceName ) { } @ Override public void deleteAllServices ( ) { } @ Override public List < CloudServiceOffering > getServiceOfferings ( ) { } @ Override public List < CloudServiceBroker > getServiceBrokers ( ) { } @ Override public CloudServiceBroker getServiceBroker ( String name ) { } @ Override public void createServiceBroker ( CloudServiceBroker serviceBroker ) { } @ Override public void updateServiceBroker ( CloudServiceBroker serviceBroker ) { } @ Override public void deleteServiceBroker ( String name ) { } @ Override public void updateServicePlanVisibilityForBroker ( String name , boolean visibility ) { } @ Override public List < CloudServiceUsageEvent > getServiceUsageEvents ( ) { Map < String , Object > urlVars = new HashMap < String , Object > ( ) ; <START_BUG> String urlPath = "//v2//app_usage_events" ; <END_BUG> return doGetServiceUsageEvents ( urlPath , urlVars ) ; } protected List < CloudServiceUsageEvent > doGetServiceUsageEvents ( String urlPath , Map < String , Object > urlVars ) { } @ Override public List < CloudApplication > getApplications ( ) { } @ Override public CloudApplication getApplication ( String appName ) { } @ Override public CloudApplication getApplication ( UUID appGuid ) { } @ Override public Map < String , Object > getApplicationEnvironment ( UUID appGuid ) { } @ Override public Map < String , Object > getApplicationEnvironment ( String appName ) { } @ SuppressWarnings ( "unchecked" ) private CloudApplication mapCloudApplication ( Map < String , Object > resource ) { } private int getRunningInstances ( UUID appId , CloudApplication . AppState appState ) { } @ Override public ApplicationStats getApplicationStats ( String appName ) { } @ SuppressWarnings ( "unchecked" ) private ApplicationStats doGetApplicationStats ( UUID appId , CloudApplication . AppState appState ) { } private Map < String , Object > getInstanceInfoForApp ( UUID appId , String path ) { } @ Override public void createApplication ( String appName , Staging staging , Integer memory , List < String > uris , List < String > serviceNames ) { } @ Override public void createApplication ( String appName , Staging staging , Integer disk , Integer memory , List < String > uris , List < String > serviceNames ) { } private void addStagingToRequest ( Staging staging , HashMap < String , Object > appRequest ) { } @ SuppressWarnings ( "unchecked" ) private List < Map < String , Object > > getAllResources ( String urlPath , Map < String , Object > urlVars ) { } @ SuppressWarnings ( "unchecked" ) private String addPageOfResources ( String nextUrl , List < Map < String , Object > > allResources ) { } private void addUris ( List < String > uris , UUID appGuid ) { } private void removeUris ( List < String > uris , UUID appGuid ) { } protected void extractUriInfo ( Map < String , UUID > domains , String uri , Map < String , String > uriInfo ) { } private Map < String , UUID > getDomainGuids ( ) { }

Fix:
String urlPath = "//v2//service_usage_events" ;