public String getInstanceName() { if (instanceNameField != null) { return instanceNameField.getValue(); } else { return null; } }