public void setAsText(String text) {
if (text != null) {
String[] parts = text.split(",");
if (parts.length != 5) {
throw new PropertyEditorException("Principal should have the form 'realm,domain,class,name,run-as'");
}
RealmPrincipalInfo principal = new RealmPrincipalInfo(parts[0], parts[1], parts[2], parts[3], Boolean.valueOf(parts[4]).booleanValue());
setValue(principal);
} else {
setValue(null);