code: public static boolean validateAttachment(Attachment currentAttachment) {
  		try {
  			currentAttachment.getId();
  
  			if (currentAttachment.getAlternateId() == "null" || currentAttachment.getAlternateId().isEmpty()) {
  				return false;
  			}
  			if (currentAttachment.getCapGroupName() == "null" || currentAttachment.getCapGroupName().isEmpty()) {
  				return false;
  			}
  			if (currentAttachment.getCapGroupSMILES() == "null" || currentAttachment.getCapGroupSMILES().isEmpty()) {
  				return false;
  			}
  			if (currentAttachment.getLabel().equals("null") || currentAttachment.getLabel().equals(" ")) {
  				return false;
  			}
  		} catch (Exception e) {
  			return false;
  		}
  		return true;
  	}
docs: validates the current attachment
  @param currentAttachment given attachment
  @return true, if the current attachment is valid, false otherwisesr