// Performing the gid lookup in the constructor and calling chmod and
// chown from the C library (which are reentrant functions) keeps this
// class thread-safe.
String webServerGroup = info.getWebserverGroup();
if(webServerGroup != null && posix != null) {
Group group = posix.getgrnam(webServerGroup);
if(group == null)
webGroupId = 0;
else
webGroupId = (int)group.getGid();
} else {
webGroupId = 0;
}
}