public static String resourceProviderFromResourceId(String id) {
        return (id != null) ? ResourceId.fromString(id).providerNamespace() : null;
    }
public static String resourceProviderFromResourceId ( String id ) { return ( id != null ) ? ResourceId . fromString ( id ) . providerNamespace ( ) : null ; }
Extract resource provider from a resource ID string.
@param id the resource ID string
@return the resource group name