class CaseManagementContainmentControl implements WiresContainmentControl {

    @Override
    public boolean accept() {

        if (null == getParent() || getParent() instanceof WiresLayer) {
            return false;
        }

        if (!(state.getOriginalParent().isPresent() || state.getOriginalIndex().isPresent())) {
            return false;
        }

        // Execute.
        return getWiresManager()
                .getContainmentAcceptor()
                .acceptContainment(getParent(),
                                   new WiresShape[]{getShape()});
    }

    public  CaseManagementContainmentControl(final WiresParentPickerControl parentPickerControl,
                                            final CaseManagementContainmentStateHolder state);
      CaseManagementContainmentControl(final WiresContainmentControlImpl containmentControl,
                                     final CaseManagementContainmentStateHolder state);

}