private static User createAccount(HudsonPrivateSecurityRealm target, UserWithPassword user) throws IOException {
        User updatedUser;
        if (StringUtils.isNotBlank(user.password)) {
            if (StringUtils.startsWith(user.password, HASHED_PASSWORD_PREFIX)) {
                updatedUser = target.createAccountWithHashedPassword(user.id, user.password);
            } else {
                updatedUser = target.createAccount(user.id, user.password);
            }
        } else {
            updatedUser = User.getById(user.id, true);
        }
        return updatedUser;
    }
@author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
plugin/src/main/java/io/jenkins/plugins/casc/core/HudsonPrivateSecurityRealmConfigurator.java