String[] mappings = _keyMappings.get(method);
if (mappings == null) {
return PartitionContextBuilder.empty();
}
PartitionContextBuilder builder = new PartitionContextBuilder();
for (int i = 0; i < mappings.length; i++) {
if (mappings[i] != null && args[i] != null) {
builder.put(mappings[i], args[i]);
}
}
return builder.build();
}