array to hashmap directive parsing
static directive method