}else{
System.out.println("Checking warrant user unique id: "+warrantUserUniqueId);
try {
WarrantUserUniqueId findByuniqueId =
WarrantUserUniqueIdLocalServiceUtil.findByuniqueId(warrantUserUniqueId);
if(findByuniqueId == null){
System.out.println("warrant-user-unique-id not specified!");
SessionErrors.add(actionRequest, "warrant-user-unique-id-error!","warrant-user-unique-id not specified!");
sendRedirect(actionRequest, actionResponse);
//throw new Exception();
return null;
}else if (findByuniqueId.getUserId() > 0){
System.out.println("warrant-user-unique-id is already used!");
SessionErrors.add(actionRequest, "warrant-user-unique-id-error!","warrant-user-unique-id is already used!");
sendRedirect(actionRequest, actionResponse);
//throw new Exception();
return null;