exctrated ua client code from mappings library