public Optional < Group > getOptionalGroup ( Object groupIdOrPath ) { try { return ( Optional . ofNullable ( getGroup ( groupIdOrPath ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get all details of a group as an Optional instance .