}
protected void applyUpdate(final ThreadsSubsystemElement element) throws UpdateFailedException {
final ThreadFactoryElement addedElement = element.addThreadFactory(name);
if (addedElement == null) {
throw new UpdateFailedException("A thread factory named '" + name + "' is already registered here");
}
if (groupName != null) addedElement.setGroupName(groupName);
if (threadNamePattern != null) addedElement.setThreadNamePattern(threadNamePattern);
if (priority != null) addedElement.setPriority(priority);
if (! properties.isEmpty()) addedElement.setProperties(properties);