((Prim) (((DeployEntry) (tpath.getLastPathComponent())). getEntry())).sfReplaceAttribute(attribute[0],attribute[1]);
Object node = getNode(); modify(node,attribute[0],attribute[1]);
   void modifyAttribute(Object name, Object value) {      Object[] attribute = new Object[2];      attribute[0] = name;      attribute[1] = value;      NewAttributeDialog attrDialog = new NewAttributeDialog(null,            "Add/Modify attribute", true, attribute);      org.smartfrog.services.display.WindowUtilities.setPositionDisplay(              this.parent.treeScrollPane, attrDialog, "C");      attrDialog.show();      if (attribute != null) {         if (attribute[0] == null) {            return;         }         if (attribute[1] == null) {            System.out.println(" Wrong format for: " +                  attribute[0].toString());            return;         }         //System.out.println("REPLACING: Attribute: name->"+ attribute[0].     //toString()+", value->"+attribute[1].toString()+", class"+     //attribute[1].getClass().toString());         try {            TreePath tpath = (tempTree).getSelectionPath();            ((Prim) (((DeployEntry) (tpath.getLastPathComponent())).             getEntry())).sfReplaceAttribute(attribute[0],attribute[1]);         } catch (Exception ex) {            ex.printStackTrace();         }         parent.refreshTable();      }   }