I think this should be  if (vaultConfig.getCode() == null)