@DontValidate
  public Resolution edit() throws JSONException {
    if (applicationLayer != null) {
      details = new HashMap();
      for (Map.Entry<String, ClobElement> e : applicationLayer.getDetails().entrySet()) {
        details.put(e.getKey(), e.getValue().getValue());
      }

      groupsRead.addAll(applicationLayer.getReaders());
      groupsWrite.addAll(applicationLayer.getWriters());

      // Fill visible checkboxes
      for (ConfiguredAttribute ca : applicationLayer.getAttributes()) {
        if (ca.isVisible()) {
          selectedAttributes.add(ca.getFullName());
        }
      }
    }

    return new ForwardResolution(JSP);
  }