private static boolean validate(NodeDetails nodeDetails) {
   boolean result = false;
   if (nodeDetails != null) {
     if (nodeDetails.getUniqueId() != null
         && nodeDetails.getUniqueId().trim().length() > 0
         && nodeDetails.getHost() != null
         && nodeDetails.getHost().trim().length() > 0
         && nodeDetails.getDynamicTags() != null
         && nodeDetails.getDynamicTags().size() > 0
         && nodeDetails.getCredentialName() != null
         && nodeDetails.getCredentialName().trim().length() > 0) {
       result = true;
     }
   }
   return result;
 }