Map<String, P> results = new LinkedHashMap<String, P>();
ArrayList<Map<String, AttributeValue>> keyz = new ArrayList<Map<String, AttributeValue>>();
for (String key : keys) {
results.put(key, null);
keyz.add(Collections.singletonMap(Config._KEY, new AttributeValue(key)));
}
KeysAndAttributes kna = new KeysAndAttributes().withKeys(keyz);
if (!getAllColumns) {
kna.setAttributesToGet(Arrays.asList(Config._KEY, Config._TYPE));