code: public static UserCredentialsDto fromUser(User user) {
      UserCredentialsDto result = new UserCredentialsDto();
      result.setPassword(user.getPassword());
      return result;
    }
docs: transformers //////////////////////////////////