public void saveNamespace(String name, Map<String, List> desc) throws Exception {
   StoreDesc sdesc = StoreDesc.getGlobalData();
   m_gitService.putContent(
       sdesc.getRepository(),
       format(NAMESPACE_PATH, name),
       NAMESPACE_TYPE,
       m_js.deepSerialize(desc));
 }
  public static void main(String[] args) {
    try {
      XPlatUIPrimitiveElement textBox =
          new XPlatUIPrimitiveElement(XPlatUIElementType.TEXT_BOX_SINGLE);
      textBox.setParameter("label", "Name");
      textBox.setParameter("initialValue", "Please supply a gene name");
      XPlatUIElementLayout regLayoutTop =
          new XPlatUIElementLayout(XPlatUIElementLayout.UILayoutType.REGIONAL);
      regLayoutTop.setLayoutParameter("region", "top");
      textBox.setLayout(regLayoutTop);

      JSONSerializer serializer = new JSONSerializer();

      serializer.transform(textBox.new ExcludeNullsTransformer(), void.class);

      System.out.println(serializer.deepSerialize(textBox));
    } catch (Exception e) {

      System.err.println("[ERROR] In DialogElement: " + e);
      e.printStackTrace();
    }
  }
 public void saveBranding(Map<String, String> desc) throws Exception {
   StoreDesc sdesc = StoreDesc.getGlobalData();
   m_gitService.putContent(
       sdesc.getRepository(), BRANDING_PATH, "sw.setting", m_js.deepSerialize(desc));
 }