class WiresLayer extends LienzoLayer {

    public LienzoLayer add(final WiresShape wiresShape) {
        if (contains(wiresShape)) {
            LOGGER.log(Level.WARNING, "Cannot add a WiresShape into the WiresLayer twice!");
        } else {
            wiresManager.register(wiresShape);
            wiresManager.getMagnetManager().createMagnets(wiresShape,
                                                          MAGNET_CARDINALS);
            WiresUtils.assertShapeGroup(wiresShape.getGroup(),
                                        WiresCanvas.WIRES_CANVAS_GROUP_ID);
        }
        return this;
    }

}