for (int index = 2; index < args.length; index++) {
entity = args[index];
String[] deps = client.getDependency(type, entity).split("\n");
for (String line : deps) {
String[] fields = line.replace("(", "").replace(")", "").split(" ");
EntityType eType = EntityType.valueOf(fields[0].toUpperCase());
if (ConfigurationStore.get().get(eType, fields[1]) != null) continue;
String xml = client.getDefinition(eType.name().toLowerCase(), fields[1]);
System.out.println(xml);
store(eType, xml);
}
String xml = client.getDefinition(type.toLowerCase(), entity);
System.out.println(xml);