in src/main/java/org/apache/sling/jcr/resource/internal/JcrModifiableValueMap.java [101:117]
public Object remove(final Object aKey) {
final String key = checkKey(aKey.toString());
readFully();
this.cache.remove(key);
final Object oldValue = this.valueCache.remove(key);
try {
final String name = escapeKeyName(key);
Property property = NodeUtil.getPropertyOrNull(node, name);
if (property != null) {
property.remove();
}
} catch (final RepositoryException re) {
throw new IllegalArgumentException("Property '" + key + "' can't be removed from node '" + getPath() + "'.", re);
}
return oldValue;
}