boolean wasModified = isModified();
RepositoryObject object = (RepositoryObject) event.getProperty(RepositoryObject.EVENT_ENTITY);
String topic = event.getTopic();
WorkingState newState = WorkingState.Unchanged;
if (topic.endsWith("/ADDED")) {
newState = WorkingState.New;
}
else if (topic.endsWith("/CHANGED")) {
newState = WorkingState.Changed;
}
else if (topic.endsWith("/REMOVED")) {
newState = WorkingState.Removed;
}
if (!newState.equals(m_workingState.get(object))) {
m_workingState.put(object, newState);
Properties props = new Properties();
props.put(RepositoryObject.EVENT_ENTITY, object);
m_notifier.notifyChanged(RepositoryAdmin.TOPIC_STATUSCHANGED_SUFFIX, props);