Rest client in Swing for location implemented

When trying to update certain location with the same fields as of
another location, exception is thrown.