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