class ArcGISDataGroupProvider {

    public ArcGISDataGroupInfo getDataGroup(DataModelCategory category)
    {
        String startsWithId = category.getCategory().replaceAll("/MapServer.*", "");
        Set<DataGroupInfo> found = myDataGroupController.findActiveDataGroupInfo((t) -> test(t, startsWithId), true);
        ArcGISDataGroupInfo dataGroup = null;
        if (!found.isEmpty())
        {
            dataGroup = (ArcGISDataGroupInfo)found.iterator().next();
        }

        return dataGroup;
    }

    public  ArcGISDataGroupProvider(DataGroupController dataGroupController);

}