public static Extension getExtension(Element element, String name) {
  	if (element != null && element instanceof BackboneElement) 
  		return getExtension((BackboneElement) element, name);
  	
    if (name == null || element == null || !element.hasExtension())
      return null;
    for (Extension e : element.getExtension()) {
      if (name.equals(e.getUrl()))
        return e;
    }
    return null;
  }
public static Extension getExtension ( Element element , String name ) { if ( element != null && element instanceof BackboneElement ) return getExtension ( ( BackboneElement ) element , name ) ; if ( name == null || element == null || ! element . hasExtension ( ) ) return null ; for ( Extension e : element . getExtension ( ) ) { if ( name . equals ( e . getUrl ( ) ) ) return e ; } return null ; }
@param name the identity of the extension of interest
@return The extension, if on this element, else null. will check modifier extensions too, if appropriate