code: public static Pair<Object, AerospikeRecord> getAerospikeRecordFromCell(Cells cells) throws IllegalAccessException, InstantiationException,
              InvocationTargetException {
          Map<String, Object> bins = new HashMap<>();
          Object key = null;
          for (Cell cell : cells.getCells()) {
              if(key == null) {
                  if(cell.isKey()) {
                      key = cell.getValue();
                  }
              } else {
                  if(cell.isKey()) {
                      throw new InvocationTargetException(new Exception("Aerospike records must have only one key"));
                  }
              }
              bins.put(cell.getCellName(), cell.getValue());
          }
          if(key == null) {
              throw new InvocationTargetException(new Exception("Aerospike records must have one primary key"));
          }
          // Expiration time = 0, defaults to namespace configuration ("default-ttl")
          Record record = new Record(bins, 0, 0);
          return Pair.create(key, new AerospikeRecord(record));
      }
docs: Converts from and entity class with deep's anotations to AerospikeRecord.
  
  @param cells
  @return
  @throws IllegalAccessException
  @throws InstantiationException
  @throws InvocationTargetException