code: public static DataEntry getBooleanField(String name) {
          DataEntry de = new DataEntry();
          de.setEntryName(name);
          DataEntryType det = DataEntryTypeServer.getType("type.boolean.name");
          de.setDataEntryPropertyList(getDefaultProperties(det));
          de.setDataEntryType(det);
          return de;
      }
docs: Create a boolean field
  
  @param name Field name
  @return DataEntry. The entry is not persisted into the database yet.