public void remove(final Object key, final NodeModel from, final NodeModel which) {
if (!key.equals(LogicalStyleKeys.LOGICAL_STYLE)) {
return;
}
final LogicalStyleModel whichStyle = (LogicalStyleModel) which.getExtension(LogicalStyleModel.class);
if (whichStyle == null) {
return;
}
final LogicalStyleModel fromStyle = (LogicalStyleModel) from.getExtension(LogicalStyleModel.class);
if (fromStyle == null) {
return;
}
from.removeExtension(fromStyle);
}