getRelativeLocation(ApplicationResource resource) method in vaadin7

The com.vaadin.Application class is removed from Vaadin7 it contains this method :

Gets the relative uri of the resource. This method is intended to be called only be the terminal implementation. This method can only be called from within the processing of a UIDL request, not from a background thread.

Deprecated:
this method is intended to be used by the terminal only. It may be removed or moved in
the future.
Parameters:
resource the resource to get relative location.
Returns:
the relative uri of the resource or null if called in a background thread

@Deprecated

public String [More …]
getRelativeLocation(ApplicationResource resource) {

 // Gets the key

 final String key = resourceKeyMap.get(resource);

 // If the resource is not registered, return null

 if (key == null) {

     return null;
 }

 return context.generateApplicationResourceURL(resource, key);

}

The problem is that i’m working with vaadin7 and i can’t find the equivalent of getRelativeLocation(ApplicationResource resource) method in vaadin7.

Any idea will be appreciated