@Override
 public void setReadOnly(boolean readOnly) {
   persistenceUnitTextBox.setReadOnly(readOnly);
   persistenceProviderTextBox.setReadOnly(readOnly);
   datasourceTextBox.setReadOnly(readOnly);
   transactionTypeJTARadioButton.setEnabled(!readOnly);
   transactionTypeResourceLocalRadioButton.setEnabled(!readOnly);
   persistenceUnitProperties.setReadOnly(readOnly);
   persistenceUnitClasses.setReadOnly(readOnly);
 }
 @Override
 public void setResourceLocalTransactionsVisible(boolean visible) {
   transactionTypeResourceLocalRadioButton.setVisible(visible);
 }
 @Override
 public void setResourceLocalTransactions(boolean resourceLocalTransactions) {
   transactionTypeResourceLocalRadioButton.setValue(resourceLocalTransactions);
 }
 @Override
 public boolean getResourceLocalTransactions() {
   return transactionTypeResourceLocalRadioButton.getValue();
 }
 @Override
 public void setJTATransactions(boolean jtaTransactions) {
   transactionTypeJTARadioButton.setValue(jtaTransactions);
 }
 @Override
 public boolean getJTATransactions() {
   return transactionTypeJTARadioButton.getValue();
 }