public Map<String, String> getBranding() throws Exception { String swDir = System.getProperty("simpl4.dir"); File file = new File(swDir, BRANDING_PATH); if (!file.exists()) { file = new File(swDir, BRANDING_EXAMPLE_PATH); } String ret = readFileToString(file); return (Map) m_ds.deserialize(ret); }
public Map<String, List> getNamespace(String name) throws Exception { StoreDesc sdesc = StoreDesc.getGlobalData(); String ret = m_gitService.getContent(sdesc.getRepository(), format(NAMESPACE_PATH, name)); return (Map) m_ds.deserialize(ret); }