warConfig.getWebApp().setSecurityRealmName(securityRealmName);
GerSecurityType security = warConfig.getSecurity();
if (security.isSetDefaultSubject())
security.unsetDefaultSubject();
if (defaultSubjectRealm != null && defaultSubjectId != null) {
GerSubjectInfoType gerDefaultSubject = security
.addNewDefaultSubject();
gerDefaultSubject.setId(defaultSubjectId);
gerDefaultSubject.setRealm(defaultSubjectRealm);