@Override public SNode put(SNodeId key, SNode value) { if (!(key instanceof Regular)) { LOG.error( "Trying to add node with id class " + key.getClass().getName() + " to a regular model"); return null; } return myRegularMap.put(((Regular) key).getId(), value); }
@Override public SNode remove(SNodeId key) { if (!(key instanceof Regular)) { LOG.error( "Trying to remove node with id class " + key.getClass().getName() + " from a regular model"); return null; } return myRegularMap.remove(((Regular) key).getId()); }