class LayerConfigurer {

    public DataGroupInfo configureLayer(WpsProcessConfiguration configuration, WFSDataType resultType)
    {
        DataTypeInfo correspondingType = getDataType(resultType.getTypeName());
        DataGroupInfo group = resultType.getParent();
        if (correspondingType != null)
        {
            DataTypeInfoUtilities.copyDataTypeInfo(correspondingType, resultType, this);
            setLayerColor(configuration, resultType);

            if (group == null)
            {
                DataGroupInfo parent = correspondingType.getParent();
                while (!parent.isRootNode())
                {
                    parent = parent.getParent();
                }

                String instanceName = configuration.getInputs().get(WPSConstants.PROCESS_INSTANCE_NAME);
                group = new DefaultDataGroupInfo(false, myToolbox, "WPS", resultType.getTypeKey(), instanceName);
                ((DefaultDataGroupInfo)group).setAssistant(
                        new DeletableDataGroupInfoAssistant(MantleToolboxUtils.getMantleToolbox(myToolbox), null, null, g ->
                        {
                        }));
                parent.addChild(group, this);
            }
        }

        myMantlebox.getDataTypeController().addDataType("WPS", "WPS", resultType, this);

        return group;
    }

    public  LayerConfigurer(Toolbox toolbox);

}