in src/main/java/org/apache/maven/plugins/war/util/WebappStructure.java [143:165]
public void registerFile(String id, String path, RegistrationCallback callback) throws IOException {
// If the file is already in the current structure, rejects it with the current owner
if (isRegistered(path)) {
callback.refused(id, path, getOwner(path));
} else {
doRegister(id, path);
// This is a new file
if (getOwner(path) == null) {
callback.registered(id, path);
} // The file already belonged to this owner
else if (getOwner(path).equals(id)) {
callback.alreadyRegistered(id, path);
} // The file belongs to another owner and it's known currently
else if (getOwners().contains(getOwner(path))) {
callback.superseded(id, path, getOwner(path));
} // The file belongs to another owner and it's unknown
else {
callback.supersededUnknownOwner(id, path, getOwner(path));
}
}
}