code: User replaceUser(String id, User user, AccessToken accessToken) {
          if (user == null) {
              throw new InvalidAttributeException("The given User can't be null.");
          }
          if (Strings.isNullOrEmpty(id)) {
              throw new InvalidAttributeException("The given User ID can't be null or empty.");
          }
          return replaceResource(id, user, accessToken);
      }
docs: See {@link OsiamConnector#replaceUser(String, User, AccessToken)}