used Replace instead of JavaCallout for updating attribute value