@Override
public void onOkButtonPressed() {
// TODO: validation
final GrantEntry grantEntry = initialGrantEntry == null ? newGrantEntry : initialGrantEntry;
grantEntry.setCodeBase( codeBaseTextField.getText() );
grantEntry.setSignedBy( signedByTextField.getText() );
if ( initialGrantEntry == null ) {
policyEntryList.add( grantEntry );
listModel.addElement( grantEntry );
} else