Add mapping with Java API